Difference between revisions of "ARIA Required property"

From Level Access Web Labs
Jump to navigation Jump to search
 
(8 intermediate revisions by 2 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 for="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 required="required" title="first name" aria-required="true">
+
<Select title="first name" aria-required="true">
 
<option>roy</option>
 
<option>roy</option>
 
<option>doug</option>
 
<option>doug</option>

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.