The ______ attribute in a label element should contain the ID of a related form control.

  • bind 
  • connect 
  • for 
  • rel 
The for attribute in a label element specifies which form element a label is bound to. It should contain the ID of the related form control. This ensures that when the label is clicked, the associated input field gains focus, which enhances accessibility and usability. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *