Share on Google+Share on Google+

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

Advertisement
In this section we will inform you about the <header> tag in html5.

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

In this section we will inform you about the <header> tag in html5. The <header> tag is used for defining the document or section introduction. The <header> tag usually contains <h1>-<h6>  and  <hgroup> tags. The <header> tag can contains logo or slogan of the site or company because it is placed at topmost area of the web page. The <header> tag must have both oppening and closing tags.

Declaration Syntax:

The syntax for declaring the <header> tag is:

<header>Header Content</header>

Example:header_tag.html.

<!DOCTYPE html>
<html>
  <head>
      <title>Example of header Tag</title>
  </head>
  <body>
  <b>This is example of header tag.</b><br>
  <header>
        <span style="color:blue;font-style:italic;">
      Gyan Singh: HTML5 </span>
  </header><hr>
  </body> 
</html>

Output:

Download This Example:

Difference between HTML5 and HTML4

This is the new introduction in html5.

Advertisements

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.