<label for="user-id">User ID</label>
<input type="text" id="user-id"> <!-- This is a user interface control element -->
Rendered Output
<!--
    The control element's id "user-checking" is
    set as the value of the for attribute of the <label> tag.
-->
<label for="user-checking">Click Me</label>
<input type="checkbox" id="user-checking">
Rendered Output Clicking on the <label> text ("Click Me") moves focus to the associated checkbox.
<label>
    Click Me
    <input type="checkbox">
</label>
Rendered Output Clicking on the <label> text ("Click Me") moves focus to the associated checkbox.
<input type="text" title="Name" id="user-name">
<label>
    <input type="checkbox" name="privacy">
    <a href="privacy.html">I agree to the Privacy Policy</a>
</label>
<label>
    <input type="checkbox" name="privacy">
    I agree to the Privacy Policy
</label>
<p><a href="privacy.html">View Privacy Policy</a></p>