The ______ attribute in the label element is used to associate the label with a form control.
- attach
- bind
- for
- rel
The for attribute in the label element is essential for associating the label with a specific form control. This association enhances accessibility because, when a user clicks on the label, the associated control (like a text box or radio button) is selected or activated. It also ensures screen readers correctly read the label for users with disabilities.
Loading...
Related Quiz
- Why is it important to avoid using heading tags to resize text?
- HTML comments within the _____ tag might provide additional information about external resources.
- Which of the following is a correct DOCTYPE declaration for HTML5?
- How would you implement custom quotation marks using CSS for inline quotations while maintaining semantic HTML and ensuring browser compatibility?
- The HTML element _______ is a common example of block-level elements.