3 ms·
One reason might be for styling. Otherwise you may have to resort to wrapping the label's text in a span or something to target the label's text separately. Y
by memco 11y ago
One reason might be for styling. Otherwise you may have to resort to wrapping the label's text in a span or something to target the label's text separately. You wouldn't use the id for styling, just to link the label and the input for accessibility.