<p>Right now, as you read this, your browser is doing something remarkable. It downloaded a file full of code, interpreted three different programming languages, and turned them into the words, colours, and buttons you can see and click. How does it all work? Let's pull back the curtain.</p> <div class="callout"><p><strong>Every website on the internet — from Google to YouTube to CodeEarly — is built using three core languages:</strong> HTML, CSS, and JavaScript. They each do a completely different job.</p></div> <h2>HTML: The skeleton</h2> <p>HTML stands for HyperText Markup Language. It's the language that defines the structure and content of a web page. HTML tells the browser what things are — headings, paragraphs, images, buttons, links.</p> <pre class="post-code"><code><h1>Welcome to CodeEarly!</h1> <p>We teach kids aged 7 to 16 to code.</p> <button>Join now</button></code></pre> <p>Think of HTML as the skeleton of a building. It holds everything up and gives it structure — but on its own, it looks pretty plain.</p> <h2>CSS: The stylist</h2> <p>CSS stands for Cascading Style Sheets. It's the language that controls how everything looks — colours, fonts, spacing, layouts, and animations. Without CSS, every website would just be black text on a white background.</p> <pre class="post-code"><code>h1 { color: #4f46e5; font-size: 32px; font-weight: bold; }

button { background: #1a7d8c; color: white; border-radius: 8px; padding: 12px 24px; }</code></pre> <p>Think of CSS as the interior designer. It takes the plain skeleton and makes it beautiful.</p> <h2>JavaScript: The brain</h2> <p>JavaScript is what makes websites interactive. When you click a button and something happens, when a menu slides open, when a quiz checks your answer — that's JavaScript at work.</p> <pre class="post-code"><code>// This runs when the button is clicked document.querySelector('button').addEventListener('click', function() { alert('Welcome to CodeEarly! 🎉'); });</code></pre> <p>Think of JavaScript as the brain and nervous system. It makes things react to what you do.</p> <h2>How they work together</h2> <p>When you type a web address and press Enter, your browser sends a request to a server somewhere in the world. The server sends back the HTML file. Your browser then reads the HTML, finds any linked CSS and JavaScript files, downloads those too, and puts the whole page together. This usually happens in less than a second.</p> <h2>What about the stuff you can't see?</h2> <p>So far we've only talked about the frontend — what you see in the browser. But most websites also have a backend: servers, databases, and code that run behind the scenes to store your account, check your password, and deliver the right content to the right person. Backend code is often written in Python, JavaScript (Node.js), or other languages.</p> <div class="callout"><p><strong>Want to build your own website? Start with HTML and CSS in CodeEarly's web development course. You'll have your first page live on the internet within your first few lessons.:</strong></p></div>

CE
CodeEarly Team
Instructors & Content Team
The CodeEarly content team is made up of experienced tech educators and industry professionals passionate about making technology education fun and accessible for African kids aged 7-15.

Found this useful? Share it!