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

Advertisement

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


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.

Posted on: September 8, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com