Created
February 9, 2011 23:39
-
-
Save ginader/819590 to your computer and use it in GitHub Desktop.
if ARIA is supported it will anounce required on the input and ignore the image. If not the user sees the required icon and gets the alt text.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<label for="fname"> | |
First Name <img src="required-icon.png" alt="required" role="presentation"> | |
</label> | |
<input type="text" aria-required="true" required id="fname" name="fname" > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment