Hello all. I was wondering if I could get more information and opinions on whether or not to nest input elements within label elements? Is there a best practice or does it matter as long as they are linked by the “for” attribute?
I notice when I nest the input within the label element, it pushes the label text after the input field.
If I don’t nest it, the label comes before the input field.
It seems like there would be times when one instance would be better than the other and we should choose what works for our particular document, or even input type (for example: text inputs vs. radio buttons)?