Share on Google+Share on Google+

HTML5 h1 tag, Introduction to <h1> tag in html5

Advertisement
In this illustration we will inform you about the use and implementation of <h1> tag in html5.

HTML5 h1 tag, Introduction to <h1> tag in html5

In this illustration we will inform you about the use and implementation of <h1> tag in html5. The <h1> tag is used to specify the header of level1(most important). HTML5 have 6 levels of header (<h1> to <h6>). The importance of header is that it decreases from h1 to h6. The each header is specific to the font and size of the text.  This tag must have opening <h1> tag and closing </h1> tag. This tag can not be used after the <address> tag.

Declaration Syntax:

 The syntax is as follows:

<h1>Heading Text</h1>

Example:h1_tag.html

<!DOCTYPE html>
<html>
  <head>
      <title>Example of h1 Tag</title>
  </head>
<body>
    <h1>
         Roseindia:
         We work on java technology
     </h1>
</body> 
</html>

Output:

Download This Example:

Difference between html4.01 and html5:

This tag doesn't have specific attribute. The "align" attribute is not supported in html5 instead of it we should use css.

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.