Essential HTML Tags

There are four sets of HTML tags that form the basic structure needed for every HTML file:

  • <html></html>
  • <head></head>
  • <title></title>
  • <body></body>
Definition - <html> </html>
This basically defines the document as web page. It also identifies the beginning and end of the HTML document. All other tags must fall between the html tags.
Header - <head> </head>
The header contains information about the document that will not appear on the actual page, such as the title of the document, the author, which stylesheet to use and also meta tags.
Title - <title> </title>
The title tag defines the title that will appear in the title bar of your web browser. The title must appear between the head tags.
Body - <body> </body>
The body tags contain all the information and other visible content on the page. All your images, links and plain text must go between the <body> and </body> tags.

You may also be interested in the basic tags for adding content and headings.


Below is a basic html document. Notice that everything falls between the html tags, the title appears within the head of the document, and that the body comes after the head.

  <title>this is the title</title>
  this is everything that goes in the document!

See live demo of this example or open in a new window. (Note: close window or tab to return to the guide)