Skip to main content

HTML Guide

Free site validation

Find out what web pages on your sites are affected by HTML issues.

The element “button” must not appear as a descendant of an element with the attribute “role=button”.

A button element is not allowed to contain other button elements, or other elements with role=button.

The button role identifies an element as a button to assistive technology such as screen readers. A button is a widget used to perform actions such as submitting a form, opening a dialog, canceling an action, or performing a command such as inserting a new record or displaying information. Adding role="button" tells assistive technology that the element is a button but provides no button functionality

Learn more:

Related W3C validator issues