COMPUTER LECTURES

HOME About us HTML ONLINE CODE EDITOR CONTACT US
HTML | HEADING TYPES
Briefly, in HTML there are six types of heading tags, these tags of h1,h2,h3,h4,h5 and h6 are used to make different heading size in html from biggest to smallest.

SYNTAX

OPENING TAG CLOSING TAG
<h1> </h1>
<h2> </h2>
<h3> </h3>
<h4> </h4>
<h5> </h5>
<h6> </h6>

Heading Tag in HTML

<h1>Computer lectures | Heading h1</h1>
<h2>Computer lectures | Heading h2</h2>
<h3>Computer lectures | Heading h3</h3>
<h4>Computer lectures | Heading h4</h4>
<h5>Computer lectures | Heading h5</h5>
<h6>Computer lectures | Heading h6</h6>

Example : heading.html

<!DOCTYPE html>
<html>
<title>Computer lectures | Heading h1 - h6</title>
<body>
<h1>COMPUTER LECTURES OFICIAL WEBSITE...heading 1</h1>
<h2>COMPUTER LECTURES OFICIAL WEBSITE...heading 2</h2>
<h3>COMPUTER LECTURES OFICIAL WEBSITE...heading 3</h3>
<h4>COMPUTER LECTURES OFICIAL WEBSITE...heading 4</h4>
<h5>COMPUTER LECTURES OFICIAL WEBSITE...heading 5</h5>
<h6>COMPUTER LECTURES OFICIAL WEBSITE...heading 6</h6>
</body>
</html>

The output on the web broswer

Heading