Skip to content
Nazmul Nikhil
Menu

Buttons Do Not Have an Accessible Name (PageSpeed Insights): How to Fix

PageSpeed flags buttons a screen reader can't name, like icon-only close, menu or search buttons. Here's how to label them in one line.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
Buttons Do Not Have an Accessible Name (PageSpeed Insights): How to Fix
Photo: CHUTTERSNAP on Unsplash

In short

PageSpeed flags <button> elements with no text or label. Icon-only buttons (hamburger menu, close X, search, slider arrows) are the usual cause. Screen readers just say "button." Add an aria-label, or visually hidden text. Weight 10, so fixing it moves the score noticeably.

<button aria-label="Open menu">
<svg aria-hidden="true">...</svg>
</button>

WordPress: check theme menu toggles and slider plugins. Shopify: theme header and cart drawer buttons. Webflow: add an aria-label in the element's custom attributes. Wix: add a label in the button's accessibility settings. Custom builds: make aria-label required on icon-button components.

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

Sources and references

TAGSPageSpeed InsightsButtons do not have an accessible nameButton accessible nameIcon button aria-label
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