You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: techniques/general/G211.html
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -106,15 +106,16 @@ <h3>Stacked Labels</h3>
106
106
<p>Figure 4 shows a variation on stacked labels, where hints and guidance are included between the label and the input. This design does not provide an adjacent label. However, the "New Password" label is still considered to be in close enough proximity, especially given its size and boldness relative to the smaller and lower-contrast guidance text. The associations are reinforced programmatically, where the hint text is given a role of <codeclass="language-html">aria-describedby</code> and the label is properly associated with the input.</p>
107
107
<figureid="figure-new-password">
108
108
<imgsrc="img/new-password.png" alt="New Password. Passwords must be 10 or more characters, and contain at least one capital, numeric and non-alphanumeric.'">
109
-
<figcaption>Figure 4 New Password label positioned above input with a smaller-point text string about the password requirements positioned between the large label and the input.</figcaption>
109
+
<figcaption>Figure 4 "New password" label positioned above input with a smaller-point text string about the password requirements positioned between the large label and the input.</figcaption>
110
110
</figure>
111
111
<p>The hint text in such implementations should be kept to a single line where possible, since accessibility issues can arise where a more lengthy hint separates the label from its input. Figure 4 illustrates that the concept of "adjacent text" is a guide for label interpretation, but cannot always serve as a hard rule.</p>
<pclass="working-example"><ahref="../../working-examples/label-in-name-general/example2.html">Working example of stacked labels</a></p>
120
121
@@ -151,9 +152,9 @@ <h3>Text in parentheses and punctuation</h3>
151
152
<figcaption>Figure 6 The "Name" and "Birth date" labels with additional information (and asterisk and an input formatting instruction, respectively)</figcaption>
<pclass="working-example"><ahref="../../working-examples/label-in-name-general/example3.html">Working example of inputs with simplified accessible names</a></p>
0 commit comments