Home Tutorial Html Html5 HTML5 head tag, Example of <head> tag in html5

 
 

HTML5 head tag, Example of <head> tag in html5
Posted on: September 8, 2010 at 12:00 AM
In this discussion we will inform you about the <head> tag in html5 document.

HTML5 head tag, Example of <head> tag in html5

In this discussion we will inform you about the <head> tag in html5 document. This is the first tag in the html tag and contains the meta information of the document. In the <head> tag we can use following tags like <title> , <script> , <meta> , <style>, <link>,<base> etc. The content of the <head> tag (excluding <title> tag) is not displayed in the browser, only content of the title tag is displayed in the title bar of the browser.

Declaration Syntax:

The declaration  syntax of the <head> tag is as follows:

<head> The Internal Tags Here </head>

Example: head_tag.html.

<!DOCTYPE html>
<html>
  <head>
      <title>Example of head Tag</title>
  </head>
<body>
           This is example of head tag..
</body> 
</html>

Output:

Download This Example:

Difference between HTML5 and HTML4.01

There is no specific attribute of this tag and profile attribute is not supported by html5.

Related Tags for HTML5 head tag, Example of <head> tag in html5:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.