H1 has non-empty text
highh1_not_empty
Checks that the H1 heading has visible text content.
What does this rule check?
An H1 tag must contain actual text content that describes the page's main topic. Empty H1 tags, or H1 tags containing only images or whitespace, provide no value to search engines or screen readers.
Why is this important?
An empty H1 provides no ranking signal to search engines and no context for screen reader users. It wastes the most important heading slot on the page.
How to fix
Add descriptive text inside the <h1> tag. If it contains only an image, add text alongside it or use an appropriate alt attribute.
Examples
Incorrect
<h1></h1>
<!-- or -->
<h1> </h1>
<!-- or -->
<h1><img src="logo.png" /></h1>
Correct
<h1>Complete Guide to Marathon Training</h1>
Agent fix snippet
Copy this snippet and paste it into your AI coding agent to fix this issue automatically.
Find the <h1> tag and ensure it has visible text content.
If empty, add descriptive text about the page's main topic.