The head tag

The head tag of HTML5 (<head>) stores the information about the HTML document and it is very important for SEO. There are several other tags like <title>, <meta>, <script>, <link> etc. are written within HTML5 head tag. The title tag must be included within the head tag because it shows the web page title in the title bar of browser window. Except title tag, no other tag those are written within the head tag generates any output in browser.

Check the following lines of code for getting an idea about how to write the HTML5 head tag:

<head>
<title>HTML5 page title</title>
</head>

For example below we have shown a simple HTML5 code snippet with head tag for creating a simple web page:

<!DOCTYPE html>
<html>
<head>
<title>HTML5 page title</title>
</head>
<body>
HTML5 page content
</body>
</html>
Press CTRL+D to bookmark this page - The head tag

Your comment

(required)

8 + = 15