Skip to content
Nazmul Nikhil
Menu

Elements Use Prohibited ARIA Attributes (PageSpeed Insights)

PageSpeed flags ARIA attributes that are banned on certain elements, like aria-label on a plain div or span. Here's why and what to use instead.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
Elements Use Prohibited ARIA Attributes (PageSpeed Insights)
Photo: Pedro Oliveira on Unsplash

In short

Some roles prohibit naming attributes. The most common case: aria-label or aria-labelledby on a plain <div> or <span> with no role (generic elements can't be named), so screen readers often ignore it. Either give the element a proper role or native element (a button, link, image), or put the text visibly in the content. It's outside Google's weighted scoring table but is a real usability problem.

<!-- Ignored -->
<span aria-label="Rated 5 stars">★★★★★</span>
<!-- Works -->
<span role="img" aria-label="Rated 5 stars">★★★★★</span>

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

Sources and references

TAGSPageSpeed InsightsElements use prohibited aria attributesAria-prohibited-attrAria-label on div
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