Skip to content

Commit

Permalink
Apply Patrick's suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick H. Lauke <[email protected]>
  • Loading branch information
mcking65 and patrickhlauke authored Dec 10, 2023
1 parent 679fdc8 commit 670addc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ <h3>Naming Form Controls with the Label Element</h3>
For example, text displayed adjacent to a checkbox may be visually associated with the checkbox, so it is understood as the checkbox label by users who can perceive that visual association.
However, unless the text is programmatically associated with the checkbox, assistive technology users will experience a checkbox without a label.
HTML provides two syntaxes for specifying this relationship.
The syntax with the broadest browser and assistive technology support is to set the <code>for</code> attribute on the <code>label</code> element to the <code>ID</code> of the control.
The syntax with the broadest browser and assistive technology support is to set the <code>for</code> attribute on the <code>label</code> element to the <code>id</code> of the control.
</p>

<pre><code>&lt;input type="checkbox" name="subscribe" id="subscribe_checkbox"&gt;
Expand Down

0 comments on commit 670addc

Please sign in to comment.