1. Home
  2. SiteLint
  3. Accessibility Rules
  4. h1-must-be


Print this article


This rule verifies if there is defined heading h1 on the page.


    Most content on web pages should be organized into sections. When pages are organized into sections, a heading should be present. All pages should at least have one <h1> level heading giving the title of the page.

    This rule checks 1 case:

    1. Determine if there is at least 1 element <h1>

    Note: the rule does not check if the content of <h1> is empty.

    How to fix it

    The rule passes when there is at least 1 <h1> element.


    Best Practices

    Was this article helpful to you? No Yes

    How can we help?