7 of 133 menu

The h6 tag

The h6 tag creates a 6-level heading. A heading is the name of a block, usually typed in a large and bold font. The h1 heading is the most important heading on the page, it should reflect its main idea.

Headings in HTML have different levels: from the first (h1) to the sixth (h6). If we compare an HTML page with a book, then the heading h1 can be considered the title of the entire book, h2 - a chapter, h3 - a paragraph in a chapter, and so on. Accordingly, the normal text is in paragraphs.

This tag is bold and large by default. This behavior can be changed using the CSS properties font-weight and font-size.

Example

Let's see what headings of different levels and paragraphs look like in a browser:

<h1>Heading h1</h1> <h2>Heading h2</h2> <h3>Heading h3</h3> <h4>Heading h4</h4> <h5>Heading h5</h5> <h6>Heading h6</h6> <p>This is paragraph.</p> <p>This is paragraph.</p> <p>This is paragraph.</p>

:

See also

  • tags h1, h2, h3, h4 , h5,
    which also make headings in the text
  • tag p,
    with which you can make paragraphs in the text
byenru