Maybe this has been discussed before, but I’m having trouble understanding the purpose of “label for.”
What I understand so far about “label” is that it creates a grouping/ association between the enclosed elements (I’m sorry if I’m butchering the jargon here… just started coding. Literally.). But why add on the “for”?
It is considered best practice to set a for attribute on the label element, with a value that matches the value of the id attribute of the input element. This allows assistive technologies to create a linked relationship between the label and the child input element.
But what does that actually MEAN? What kind of assistive tech are we talking about here?
Also, as a person new to the coding world-- is this a stupid question? (trying to get my sea legs… or is it my C legs!!!.. Oh, God.)