Creating headings in HTML web page

Creating headings in HTML web page

Headings in HTML are of different sizes and it defines levels. The headings h1, h2, h3, h4, h5, h6 are used to give different size to the heading. Let us see how to create headings in an HTML Document and how heading levels look like in a web page,

HTML heading levels

HTML has the above displayed 6 tags to create headings, wherein <h1> tag has the highest level and the font size if higher than <h2>, <h3>, etc. The <h6> tag defines the least important heading, whose font size is the lowest of all the heading levels.



Create HTML headings

Above, we have created headings on an HTML web page. In the output screenshot, a title is also visible, which we added in the <title> </title> tag above.

The content is under the <body></body tag. The <p></p> is a paragraph tag and  allows you to add content.

More Examples

HTML Basic Examples
Studyopedia Editorial Staff
Studyopedia Editorial Staff
[email protected]

We work to create free tutorials for all.

No Comments

Post A Comment