Skip to main content
CriticalWCAG 4.1.2 · Level ARobust

Empty Button Lacks Accessible Name

Flags <button> elements with no inner text, aria-label, title, or image alt text.

Rule ID: custom-empty-button · reported under Needs review, because a person should confirm it.

Who this affects

How to fix it

Problem

<button></button>

Fixed

<button aria-label="Close dialog">✕</button>

These are short examples. In the extension, A11yEngine points to the element on your own page and can suggest a fix for your code (HTML, React, Vue or Tailwind).

Find this on your own pages

Check any page for this and 100+ other issues in your browser, free.

← All rules