Every <button> must include visible text or an aria-label to provide its accessible name.
<button>Submit</button>
<button aria-label="Close modal"></button><button></button>When: A button has no text or aria-label
Warning: <button> missing accessible text
Solution: Provide visible text or an aria-label
Accessibility: Unlabeled buttons are announced as ‘button’ only, offering no context to screen-reader users.
SEO: Buttons aren’t indexed by search engines when they lack descriptive names.
Prevent buttons without names to guarantee assistive-tech users understand control purpose.
G208: Accessible Name Computation for button content.ARIA6: Using aria-label to provide labels for button elements.The <button> element’s label is its accessible name; aria-label can override when no visible text exists.