HTML Headings


The six level headings

  1. <h1>
  2. <h2>
  3. <h3>
  4. <h4>
  5. <h5>
  6. <h6>
 *openging <h1> and closeing </h1> tag.

<h1> element as the largest

<h6> element as the smallest

The <h1> <h2> <h3> <h4> <h5> <h6> element can carry all the Universal attributes.

HTML Headings Example

<html> 
 <head>  
  <title> Welcome to HTML Tutroial </title> 
 </head>  
 <body>  
  <h1>Heading 1</h1>
  <h2>Heading 2 </h2>
  <h3>Heading 3</h3>
  <h4>Heading 4 </h4>
  <h5>Heading 5</h5>
  <h6>Heading 6</h6>
  </body>  
</html>

Output

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Share this article on