HTML Checking for Large Sites

Rocket Validator automatically checks your pages on the W3C Validator.

The “button” role is unnecessary for element “summary”.

The <summary> HTML element specifies a clickable summary, caption, or legend for a <details> element’s disclosure box. As the <summary> element has an implicit button role, it’s not needed to include it explicitly.

Here’s an example, clicking the <summary> element toggles the state of the parent <details> element open and closed.

    <summary>I have keys but no doors. I have space but no room. You can enter but can’t leave. What am I?</summary>
    A keyboard.

Learn more:

* MDN: summary element

* MDN: ARIA button role

Related W3C validator issues

50,000 Accessibility and HTML checks per month. Fully automated.

Let our automated scanner check your large sites using Axe Core and W3C Validator.