Skip to content

h1-require

A H1 heading element is required in HTML documents. The heading can not be empty. This rule ensures that the document has a clear and accessible structure, which is important for both users and search engines.

Level: Warning

  1. true: enable rule
  2. false: disable rule

The following patterns are not considered rule violations

Section titled “The following patterns are not considered rule violations”
<html><body><h1>Title</h1></body></html>

The following patterns are considered rule violations

Section titled “The following patterns are considered rule violations”
<html><body><p>No heading</p></body></html>
<html><body><h1></h1></body></html>
<html><body><h1> </h1></body></html>