Heading elements in HTML come in six levels:
h1h2h3h4h5h6h1 is of highest importance. It is reserved by LearnPress for page titles and should not be used in the body of a page. h5 and h6 are rarely used (by default in most browsers they display smaller than the normal text size).
Correct markup. Do not mark up headings using <b> or <strong>! Inline headings may occasionally be used (see below), but headings that appear on their own line should be marked up as headings. Correct markup aids search engine optimization, accessibility by screen readers, and consistent visual display.
Nesting headings. Headings should always be nested correctly: The first subheading under an h2 element should always be h3, and so on. This is not only good practice but ensures that scripts generating page contents will work correctly.
h1 is reserved for the page title, the highest-level heading in the body text should be h2.h2.h2.<h2>Notes</h2>, so the highest-level heading in the page comments should be h3.Headings, including titles, should use sentence case: That is, only the first word, the first word after a colon, and any proper nouns or adjectives should be capitalized. An exception is when the heading includes the title of another work, in which case title case should be used.
An inline heading is text that serves as the heading for a single paragraph or list item that is displayed within (at the beginning of) that paragraph of list item. Inline headings are marked with the <strong> tag.
Inline headings may be used in the following cases: