Example file using ARIA-Required

The below is the static form with html code snippet that is used for this example. The reason for providing the code snippet is that one can access the source code easily even if it is viewed in the mobile platforms. In general, it might not be very easy to access the source code of the form when this is viewed in the mobile platforms. This example makes you understand how the required fields are exposed with the ‘aria-required’ technique when you run the screen reader on this form across all the platforms.




Source Code

</p> <h1> Example file for Aria-Required </h1> <p> <label for="first">First Name *</label><br /> <input type="text" id="first" aria-required="true"> </p> <p> <label for="last">Last Name *</label><br /> <input type="text" id="last" aria-required="true"> </p> <p> <label for="email">Email *</label><br /> <input type="text" id="email" aria-required="true"> </p> <p> <input type="submit"> <input type="button" value="reset"> </p> <p>

Leave a Reply

Your email address will not be published. Required fields are marked *