Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion techniques/html/H44.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h2>Description</h2>
<p>The objective of this technique is to use the <code class="language-html">label</code> element to explicitly associate a form control with a label. A <code class="language-html">label</code> is attached to a specific form control through the use of the <code class="language-html">for</code> attribute. The value of the <code class="language-html">for</code> attribute must be the same as the value of the <code class="language-html">id</code> attribute of the form control.</p>
<p>The <code class="language-html">id</code> attribute may have the same value as the <code class="language-html">name</code> attribute, but both must be provided, and the <code class="language-html">id</code> must be unique in the web page.</p>
<p>This technique is sufficient for Success Criteria <a href="../../Understanding/non-text-content.html">1.1.1 (Non-Text Content)</a>, <a href="../../Understanding/info-and-relationships.html">1.3.1 (Info and Relationships)</a> and <a href="../../Understanding/name-role-value.html">4.1.2 (Name, Role, Value)</a> whether or not the <code class="language-html">label</code> element is visible. That is, it may be hidden using <abbr title="Cascading Style Sheets">CSS</abbr>. However, for Success Criterion <a href="../../Understanding/labels-or-instructions.html">3.3.2 (Labels or Instructions)</a>, the <code class="language-html">label</code> element must be visible since it provides assistance to all users who need help understanding the purpose of the field. </p>
<p>An additional benefit of this technique is a larger clickable area for the control, since clicking on the label or the control will activate the control. This can be helpful for users with impaired motor control.</p>
<p>An additional benefit of this technique is a larger clickable area for the control, since clicking on either the label or the control will activate the control. This can be helpful for users with impaired motor control.</p>
<p>Note that the <code class="language-html">label</code> is positioned after <code class="language-html">input</code> elements of <code class="language-html">type="checkbox"</code> and <code class="language-html">type="radio"</code>.</p>
<div class="note">
<p>Elements that use explicitly associated labels are:</p>
Expand Down