Rule TITLE-4
The h1 element must contain text content.


Best Practice Type: Pass/Fail

The h1 element must contain text content.


  • Text content includes all text nodes of children of the h1 element.
  • Leading and trailing spacing characters are ignored. NOTE: If the text content is only spaces it will be treated as empty.
  • If an img element with an alt attribute is contained in a h1 element, the alt attribute value is inserted into the heading text content in the order of appearance in the document to become part of the text content of the heading element.



Associated Accessibility Guidelines and Standards

Guideline or
Requirement Priority Test
IITAA 1.3 Provide meaningful page titles. Desirable Violation
1.4 Use headings to introduce sections and sub-sections, and use them in the correct order. Required Violation
Section 508 1194.22 (o) A method shall be provided that permits users to skip repetitive navigation links. Required Violation
WCAG 1.0 3.5 Use header elements to convey document structure and use them according to specification. Required Violation
13.4 Use navigation mechanisms in a consistent manner. Required Violation
WCAG 2.0 2.4.2 Page Titled Required Violation
2.4.6 Headings and Labels Required Violation


Evaluation Techniues

Testsuite Tests