Web DesignPage skeletonLesson 2 / 69

Your first HTML page

Fill-gap20 min

Your first HTML page

An HTML document is a set of nested boxes called elements:

<!doctype html>
<html lang="en">
  <head>
    <title>My first page</title>
  </head>
  <body>
    <h1>Hello, web</h1>
    <p>My name is written in HTML.</p>
  </body>
</html>
  • <head> holds information about the page (the tab title).
  • <body> holds everything the reader actually sees.
  • Most elements come in pairs: an opening tag, content, a closing tag.

Type this into a file called index.html and open it in your browser. That is your first deployment — no server needed yet.

Exercise

Create index.html with a title, one heading, and two paragraphs about yourself. Open it in a browser. Change the <title> and watch the tab.