Well done!
You have completed Accessible and Structured HTML Forms Quiz!
Quiz Question 1 of 5
Why is it considered best practice to use both the for
attribute and nested structure when associating a <label>
with a form control?
Choose the correct answer below:
-
A
To guarantee that screen readers and other assistive technologies consistently recognize the relationship between the label and the control.
-
B
To maintain backward compatibility with older versions of HTML.
-
C
To allow for multiple controls to be associated with the same label.
-
D
Because it ensures the label is visually aligned with the form control in all browsers.