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

 
 

HTML5 header tag, Example of <header> tag in html5
Posted on: September 8, 2010 at 12:00 AM
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.

Advertisement

Related Tags for HTML5 header tag, Example of <header> 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