Difference between revisions of "ARIA Required property"

From Level Access Web Labs
Jump to navigation Jump to search
Line 4: Line 4:
 
   <div>
 
   <div>
 
     <label for="u1"> User name:</label>
 
     <label for="u1"> User name:</label>
     <input type="text" aria-required="true" id="u1" />
+
     <input type="text" aria-required="true" id="u1" aria-invalid="true" />
  
 
<Select title="first name" aria-required="true">
 
<Select title="first name" aria-required="true">

Revision as of 22:34, 24 October 2018

This page provides an example of the aria-required attribute. This attribute should not be used in combination with the HTML required attribute as to avoid conflicting statuses.