Rocket Validator integrates the W3C Validator HTML checker into an automated web crawler.
HTML issues tagged as input.
The aria-hidden attribute is redundat on an input of type hidden, so it should be removed.
<!-- Instead of this... --> <input type="hidden" aria-hidden="true" id="month" value="10" /> <!-- You can just use this --> <input type="hidden" id="month" value="10" />
The button role is used to make an element appear as a button control to a screen reader and can be applied to otherwise non-interactive elements like <div>. If you’re already using an <input> element whose type is submit, then it’s redundant to apply it the role button, as that’s implicit.
<!-- Instead of this --> <input type="submit" role="button">Buy</button> <!-- Do this --> <input type="submit">Buy</button>
An element with role=button can’t have an input element as descendant.
The ARIA role button can be added to an element to make it behave like a <button> – just like a <button> is not allowed to contain other <input> elements as descendants, any element with this role is not allowed to contain them either.
All these examples in the following code will raise a similar issue:
<div role="button"> <input type="checkbox" /> </div> <button> <input type="checkbox" /> </button> <a> <input type="checkbox" /> </a>
Still checking your large sites one page at a time?
Save time using our automated web checker. Let our crawler check your web pages on the W3C Validator.