Skip to content

Commit

Permalink
Update content/practices/names-and-descriptions/names-and-description…
Browse files Browse the repository at this point in the history
…s-practice.html

Co-authored-by: Daniel Montalvo <[email protected]>
  • Loading branch information
patrickhlauke and daniel-montalvo authored Dec 1, 2023
1 parent 4fbf911 commit 9d85980
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ <h3>Naming Form Controls with the Label Element</h3>
<pre><code>&lt;input type="checkbox" name="subscribe" id="subscribe_checkbox"&gt;
&lt;label for="subscribe_checkbox"&gt;subscribe to our newsletter&lt;/label&gt;</code></pre>
<p>
While both techniques are equally valid, currently explicit labels are better supported by assistive technology. When possible, use the above technique for <em>explicit</em> labeling instead of the <em>implicit</em> technique.
While both techniques are equally valid, <em>explicit</em> labeling is currently better supported by assistive technology. When possible, use <em>explicit</em> labeling instead of <em>implicit</em> labeling.
</p>
<p>
Using the <code>label</code> element is an effective technique for satisfying <a href="#naming_rule_visible_text">Rule 2: Prefer Visible Text</a>.
Expand Down

0 comments on commit 9d85980

Please sign in to comment.