Heading elements describe content's section and information it presents.

They are considered to be the titles and sub-titles of the content itself.

Hierarchy starts with <h1> element as the highest level heading (most important one) and ends with <h6> as the lowest level.

Higher level headings usually appear in larger fonts.

Syntax:

<h1></h1>, <h2></h2>, <h3></h3>, <h4></h4>, <h5></h5>, <h6></h6>

Attributes:

Example

HTML heading elements:

x
 
<html>
<head>
<title>HTML tutorial</title>
</head> 
<body>
<div class="content_wrap">
<h1>Brenko.web headings tutorial</h1>
<h2>Brenko.web headings tutorial</h2>
<h3>Brenko.web headings tutorial</h3>
<h4>Brenko.web headings tutorial</h4>
<h5>Brenko.web headings tutorial</h5>
<h6>Brenko.web headings tutorial</h6>
</div>
</body>
</html>

 

›› go to examples ››