Expected at least one heading h1 element, but found none

Description

Rule ID: h1-must-be

This rule verifies if there is a 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