WCAG/1.4.1: Fix example for text cues on a form's required elements

The input element must be wrapped by <label> either or the <label> tag
needs a "for=id" attribute with the id of the respective input.

refs #7934
This commit is contained in:
Johannes Meyer 2015-02-11 08:46:57 +01:00
parent 4f6a8629d1
commit 60ec115779
1 changed files with 1 additions and 1 deletions

View File

@ -28,8 +28,8 @@
Enter some text Enter some text
<span class="required-indicator" aria-hidden="true"></span> <span class="required-indicator" aria-hidden="true"></span>
<span class="sr-only"> (required)</span> <span class="sr-only"> (required)</span>
<input type="text" name="some_text" value="" aria-required="true" required>
</label> </label>
<input type="text" name="some_text" value="" aria-required="true" required>
<input type="submit" name="btn_submit" value="Submit"> <input type="submit" name="btn_submit" value="Submit">
</form> </form>
</body> </body>