Using ARIA REQUIRED to Create Accessible Form Fields?

Donald F. Evans

May 16, 2011

Question

How can I use the ARIA "REQUIRED" attribute to create accessible form fields?


Answer

This example uses the ARIA-REQUIRED attribute



Code:


<form action="submit.php">
<p>
<label for="firstname">First Name</label>
<input type="text"
	id="firstname"
	name="firstname"
	size="50"
	aria-required="true">
 </p>
 </form>



Other Resources