H1 heading checker
Does your page have a main heading (h1) for screen readers and search engines?
- Checks your page
- Reads:HTML
- 1 rule
- Last updated
What we keep
The result appears here
Enter your page’s address and press “Check the page”. This is what the tool runs on it:
- The page has no main heading (h1)not started
What it checks
- The page has at least one
<h1>element. - At least one
<h1>element is not empty: it has text, or an image with alternative text inalt.
Example
<!doctype html> <html lang="ar" dir="rtl"> <head> <title>حلوى عمانية بالزعفران | متجر الواحة</title> </head> <body> <main> <h2>حلوى عمانية بالزعفران</h2> <p>حلوى عمانية بالزعفران والهيل، في علب من كيلو.</p> <h2>طريقة الحفظ</h2> <p>تُحفظ في مكان بارد.</p> </main> </body> </html>
<!doctype html> <html lang="ar" dir="rtl"> <head> <title>حلوى عمانية بالزعفران | متجر الواحة</title> </head> <body> <main> <h1>حلوى عمانية بالزعفران</h1> <p>حلوى عمانية بالزعفران والهيل، في علب من كيلو.</p> <h2>طريقة الحفظ</h2> <p>تُحفظ في مكان بارد.</p> </main> </body> </html>
How to fix
Put the page's topic in an <h1> heading: the product's name, the article's title or the service's name, and the headings of its sections in <h2>:
- Choose a heading's level by its place in the page's structure, not by its font size; set the size with CSS.
- In ready-made themes, the
<h1>usually comes from the page's or product's title: check that the field is not empty and that the theme does not turn it into another tag.
<main>
<h1>Dhofar incense</h1>
<p>…</p>
<h2>How to use it</h2>
<p>…</p>
</main>FAQ
No, and this tool does not count it: it is enough for one of them to have text.
Yes, when the image has alternative text: we read the <h1>'s text together with the alternative text of the images in it, as a screen reader does. An image without alt, or with alt="", has no text, so the heading stays empty.
The tool does not ask for that. The <title> shows in the browser tab and in search results, and the <h1> on the page itself; they can be close: the product's name in the <h1>, and the product's name then the store's in the <title>.
What this tool runs
- The page has no main heading (h1)moderate
h1-missing
How we measure
We fetch the page as ArablyzerBot, follow its redirects, and read the HTML as the server sends it, before any JavaScript runs, so a heading a script adds after loading is not seen. We collect the <h1> elements and read each one's text with the alternative text of the images in it, as a screen reader reads it, then apply one rule: it passes when any of them has text, and fails when there is none or all are empty. The same page gives the same result on every check.