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

h1-must-be

Print this article

    Description

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

    Context

    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.

    Standard

    Best Practices

    Was this article helpful to you? Yes No