Javatpoint Logo
Javatpoint Logo

HTML Heading


HTML Heading

A HTML heading or HTML h tag can be defined as a title or a subtitle which you want to display on the webpage. When you place the text within the heading tags <h1>.........</h1>, it is displayed on the browser in the bold format and size of the text depends on the number of heading.

There are six different HTML headings which are defined with the <h1> to <h6> tags.

h1 is the largest heading tag and h6 is the smallest one. So h1 is used for most important heading and h6 is used for least important.

See this example:

Test it Now

Output:

Heading no. 1

Heading no. 2

Heading no. 3

Heading no. 4

Heading no. 5
Heading no. 6

Heading elements (h1....h6) should be used for headings only. They should not be used just to make text bold or big.


Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<h1> to <h6>YesYesYesYesYes

Next TopicHTML Paragraph




Please Share

facebook twitter google plus pinterest tumbler

Learn Latest Tutorials