Difference between revisions of "ARIA Required property"

From Level Access Web Labs
Jump to navigation Jump to search
 
(12 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" />
 
 
  
    <button> Login </button><Select aria-required="true">
+
<Select title="first name" aria-required="true">
 
<option>roy</option>
 
<option>roy</option>
<option>sarah</option>
+
<option>doug</option>
 
</select>
 
</select>
 +
    <button> Login </button>
  
 
   </div>
 
   </div>
 
</html>
 
</html>
 
[[Category:ARIA]]
 
[[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.