×

html · level 1 · unit 5 · lesson 1

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

Every whole page has the same skeleton.

So far you have written pieces of a page. A whole page starts with . This doctype line tells the browser to expect modern HTML. Then <html> wraps everything else.

Inside <html> are two parts. The holds facts about the page, like its name. Nothing in <head> is shown on the page itself.

The holds everything people see: headings, paragraphs, pictures and lists. <head> comes first, then <body>, and both close before </html>.

<!doctype html>
<html>
  <head>
    <title>My page</title>
  </head>
  <body>
    <h1>Hello!</h1>
  </body>
</html>

Press show my page to see it here.

The <title> in the head names the page. You will meet it properly in the next lesson.