Skip to content
Nazmul Nikhil
Menu

[role]s Do Not Have All Required [aria-*] Attributes (PageSpeed Insights)

Some ARIA roles need specific attributes to work, like aria-checked on a checkbox role. Here's how to add them, or switch to native HTML.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
[role]s Do Not Have All Required [aria-*] Attributes (PageSpeed Insights)
Photo: Nick Fewings on Unsplash

In short

Some roles can't work without certain attributes. A role="checkbox" needs aria-checked; a role="slider" needs aria-valuenow; a role="heading" needs aria-level. PageSpeed flags elements missing them. Add the required attribute and keep it updated with script, or use the native element (<input type="checkbox">, <input type="range">, <h2>). Weight 10.

This guide isn't affiliated with or endorsed by Google.

Sources and references

TAGSPageSpeed InsightsRole missing required aria attributesAria-required-attrRole checkbox aria-checked
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with Technical SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Page Speed & Core Web Vitals posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com