Lesson 2 of 18

📄 HTML Structure

🎯 Grades 9–12 ⏱ ~30 minutes 💚 Beginner

What You'll Learn

  • The anatomy of every HTML document: DOCTYPE, <html>, <head>, <body>
  • How tags, elements, and attributes work
  • How to write and run your first real HTML page
Quick Check

1. What does <!DOCTYPE html> tell the browser?

AThe page title
BThis is an HTML5 document
CWhich CSS file to load

2. Where does visible page content go?

AInside <head>
BInside <body>
CInside <html> but outside <body>

3. Which of these is a self-closing tag?

A<p>
B<img/>
C<div>

4. In <a href="page.html">Click</a>, what is href?

AA CSS class
BThe link text
CAn attribute specifying the link destination