Curriculum ▸ HTML Zero → Mastery ▸ Lesson 1: What is HTML? Foundations

Lesson 1 — What is HTML? Foundations

Learning Goals

Part 1 — The Concept

HTML (HyperText Markup Language) is the language that gives structure to web pages. Think of it like the skeleton of a house. It tells the browser what things are: a heading, a paragraph, a list, or an image.

By itself, HTML doesn’t make pages look pretty—that’s what CSS does. And it doesn’t make pages interactive—that’s what JavaScript does. HTML is the foundation everything else sits on.

Key idea: HTML = structure, CSS = style, JS = behavior.

Part 2 — Minimal Document

Every valid HTML page begins with a few required parts. Let’s look at the smallest complete example and break it down:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>My First Page</title>
  </head>
  <body>
    <h1>Hello, HTML!</h1>
    <p>This is my first web page.</p>
  </body>
</html>

Part 3 — Common Elements

Here are a few tags you’ll use often:

Part 4 — Quick Exercise

  1. Create a folder called lesson-01.
  2. Create index.html and paste the minimal document code.
  3. Change the <title> and <h1> to your name.
  4. Add a new <p> saying why you want to learn HTML.

Quick Quiz

  1. What is HTML’s main job?
  2. Which language controls the page’s appearance?
  3. What’s the difference between a tag and an element?

Glossary

Common Mistakes (and Fixes)