HTML Head <head>

A header on a page usually provides information like page description, page number, book or author name, etc.

All this information is written within the HTML head tag, between <head> and </head> so that it can be visible to the visitors.

Try this example and you will have a web page by end of this written tutorial!

  1. Open up your text editor and type what you see below or you just simply copy and paste the text.
  2. Save it as a web page by adding the “.htm” or “.html” extension.
  3. Open <html> tag, which tells the browser that it is looking at a file coded in HTML.
  4. Open the <head> section (which will be displayed at the very top of the screen).
  5. Open the <title> tag and give your web page a Title and close the </title> tag.
  6. Then we close the head tag </head> as we are done with it.
  7. Open <body> tag to start the main body of the document. Then close it with after inserting whatever you want inside it.
  8. Insert </html> closing tag to tell the browser it has come to the end of the file and can stop.


The HTML head tag opens the section where properties of the page can be defined and where things like analytics scripts (non-visible to users) should be placed.



<title>Your web page title goes here</title>


Content of the page goes here.



Required Attributes

  • None

Optional Attributes

  • Profile: Indexing related description, no impact to the user

Core Attributes