Starlit Daily

📚 › HTML: build the structure of a web page

16. A complete page

Every HTML page starts with <!DOCTYPE html>, which tells the browser to use modern HTML. The html element holds everything, the head holds page information, and the body holds what visitors see.

Putting the parts together gives you a valid page you can publish.

Show example

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>My first page</title>
</head>
<body>
  <h1>Hello</h1>
</body>
</html>

✍️ Your turn

Write a complete page with the doctype, a title Lesson 16, utf-8 charset, and a body with an h1 that says Done.

← Back to course