Difference between revisions of "ARIA Required property"

From Level Access Web Labs
Jump to navigation Jump to search
(Created page with "<html> <div> <label id="u1"> User name:</label> <input type="text" aria-required="true" id="u1" /> <button> Login </button> </div> </html>")
 
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
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.
 +
 
<html>
 
<html>
 
   <div>
 
   <div>
     <label id="u1"> User name:</label>
+
     <label for="u1"> User name:</label>
     <input type="text" aria-required="true" id="u1" />
+
     <input type="text" id="u1" aria-required="true" />
 +
 
 +
<Select title="first name" aria-required="true">
 +
<option>roy</option>
 +
<option>doug</option>
 +
</select>
 
     <button> Login </button>
 
     <button> Login </button>
 +
 
   </div>
 
   </div>
 
</html>
 
</html>
 +
[[Category:ARIA]]

Latest revision as of 00:03, 25 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.