Web Tools Table Maker3schools TranslateImage CompressorFavicon Icon GeneratorCrop & Resize Image
Apu
Apu August 21, 2022 › #Html Tutorials #LEARN HTML

HTML Headings

Headings Tags

Headings Are Defined With The <h1> to <h6> Tags.

<H1> Defines The Most Important Heading and <H6> Defines The Least Important Heading.



HTML has 6 types of heading tags .
Example
<h1> This is the most important heading. </h1>
<h2> This is the second important heading. </h2>
<h3> This is the third important heading. </h3>
<h4> This is the 4 important heading. </h4>
<h5> This is the 5 important heading. </h5>
<h6> This is the last important heading. </h6>
Try it Yourself »
Here is the only H1 element given to save the time in reality, there will be these elements inside <body> </ body> tag and must follow the document full structure.




Use Of Headings Tags


Use HTML Headings Tags for headings only. Do not use Headings Tags to make text bold or big.

Because, Headings can be important for Search Engine to index your web pages.



Use of Attributes



The attribute can be used in this tag such as the following attributes are used more.
Style, align, title, class, id etc. can be used.

Example



All elements can be styled in CSS using the class and ID attribute.
However, you can see more details in the CSS tutorial.
save
listen
AI Answer
Write Your Answer
loading
back
View All