Is the ''for'' Attribute on an HTML Label Element Case Sensitive?

Would there be any negative impact on my code if the ’ for’ attribute on my ‘label’ element is written in lowercase when the value of the ‘label’ element is initial caps?
For example:

… it is often 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 related input element.

The for attribute points to the id of the input it is labeling, so the case has to match the case of that id, it does not depend on the value of the label at all.

Thank you for this clarification @bbsmooth

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.