Web Development Basics

Free AI-generated illustrated lesson. Hand-drawn and narrated, step by step.

HTML Basics

Why is every stunning website you've ever visited actually just a plain text file in disguise? Behind the gorgeous colors and animations lies a simple language called HTML.

HTML stands for HyperText Markup Language. Think of it as the raw skeleton of a house, while CSS is the paint and JavaScript is the interactive plumbing.

To build this skeleton, HTML uses 'tags' to label different types of content. A tag is just a keyword wrapped in angle brackets that tells the browser what a piece of text is.

Let's look closer at how a tag is built. We have an opening tag to start, the actual content in the middle, and a closing tag with a slash to finish.

Tags can also live inside other tags, which we call nesting. But they must always close in the exact reverse order they opened, like Russian nesting dolls.

But here is the strange part: half of your HTML code is completely invisible to the user! Every webpage is split into a hidden head and a visible body.

Let's build a real page. We start with the main html container, then add our invisible head, and finally our visible body.

Inside the body, we can add a heading tag for the title, and a paragraph tag for the description. This structure is what the browser reads to draw the page.

Watch out for the most common beginner mistake: overlapping tags. If you open a paragraph and then a bold tag, you must close the bold tag first!

So, remember: HTML is the structure, tags are the building blocks, and nesting rules keep it together. Now you're ready to write your first line of code!

Lessons in this 10-part set

  • HTML Basics
  • CSS Basics
  • JavaScript Basics
  • How the Web Works
  • HTTP and REST
  • JSON Explained
  • The DOM Explained
  • Responsive Design
  • What is a Framework
  • Frontend vs Backend

Watch this free lesson — play it in My Magic Pencil.

▶ Watch free on My Magic Pencil