Computer Applications
A label's for attribute should match the input's …………… .
- type
- id
- name
- size
HTML Advanced Features
1 Like
Answer
id
Reason — The for
attribute of a <label>
tag should match the id
attribute of the corresponding input element. The for
attribute is used to associate a label with a form control, providing a textual description or caption for the input field.
Answered By
3 Likes
Related Questions
Is the size attribute valid for the submit button ?
- Yes
- No
The two most important attributes of a form are :
- Id and action
- Class and method
- Action and method
- method and id
Creates blank text field, but shows the text as asterisks.
- Type="text"
- Type="hidden"
- Type="password"
- Type="null"
Method attribute will always post data into the browser.
- True
- False