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!
- Open up your text editor and type what you see below or you just simply copy and paste the text.
- Save it as a web page by adding the “.htm” or “.html” extension.
- Open <html> tag, which tells the browser that it is looking at a file coded in HTML.
- Open the <head> section (which will be displayed at the very top of the screen).
- Open the <title> tag and give your web page a Title and close the </title> tag.
- Then we close the head tag </head> as we are done with it.
- Open <body> tag to start the main body of the document. Then close it with after inserting whatever you want inside it.
- 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.
<html> <head> <title>Your web page title goes here</title> </head> <body> Content of the page goes here. </body> </html>
- Profile: Indexing related description, no impact to the user