Rocket Validator automatically checks your pages on the W3C Validator.
HTML issues tagged as required.
aria-required attribute is used to indicate to screen reader users that a form input is required. As there is now in HTML a general
required attribute which works with most user agents, it’s unnecessary to use both at the same time. In general, you can rely solely on the
required attribute, unless you want to provide backwards compatibility on old screen reader software versions.
<form action="order."> <!-- This will raise a warning on unnecesary attributes --> <input id="city" name="city" aria-required="true" required /> <!-- You can use this instead --> <input id="city" name="city" required /> </form>
required attribute can only be used with certain types of inputs. Check the input type is one of the allowed.
required attribute, if present, indicates that the user must specify a value for the input before the owning form can be submitted.
25,000 HTML checks per month. Is that enough for your site?
Save time using our automated web checker. Let our crawler check your web pages on the W3C Validator.