Share on Google+Share on Google+

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

Advertisement
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.

Advertisements

Advertisement

Posted on: September 8, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.