Advertisements
Advertisements
Question
A label’s for attribute should match the input’s ______.
Options
type
id
name
size
MCQ
Fill in the Blanks
Advertisements
Solution
A label’s for attribute should match the input’s id.
Explanation:
A <label> tag’s for attribute and the attached input element’s id attribute must match. A label that provides a textual description or caption for the input field can be linked to a form control using the for attribute.
shaalaa.com
Is there an error in this question or solution?
