Which statement about labeling form controls is accurate?

Master ReactJS with our comprehensive test. Practice with multiple-choice questions and detailed explanations. Build your skills for the exam with our engaging format and expert tips!

Multiple Choice

Which statement about labeling form controls is accurate?

Explanation:
Connecting a label to its input by giving the input an id and using that id in the label’s htmlFor attribute is the reliable, accessible pattern. This creates a clear, explicit relationship so screen readers announce the label when the control is focused, and clicking the label will focus or activate the input. It also keeps a visible label for sighted users, which is maintained in a single, standard way across all form controls. Other approaches fall short because they don’t establish that robust, programmatic link. Relying on a screen reader to read labels automatically isn’t dependable, and using aria-label while skipping a visible label reduces clarity for sighted users. Using data attributes to “link” labels doesn’t create a real accessibility relationship, so assistive technologies won’t reliably associate the label with the control.

Connecting a label to its input by giving the input an id and using that id in the label’s htmlFor attribute is the reliable, accessible pattern. This creates a clear, explicit relationship so screen readers announce the label when the control is focused, and clicking the label will focus or activate the input. It also keeps a visible label for sighted users, which is maintained in a single, standard way across all form controls.

Other approaches fall short because they don’t establish that robust, programmatic link. Relying on a screen reader to read labels automatically isn’t dependable, and using aria-label while skipping a visible label reduces clarity for sighted users. Using data attributes to “link” labels doesn’t create a real accessibility relationship, so assistive technologies won’t reliably associate the label with the control.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy