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.

Code

Output

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


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

We work to create programming tutorials for all.

No Comments

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading