6 ms·
I opt for a P around both the label and the field, gives greater CSS hooks and encapsulates each form area nicely.
by mr_justin 16y ago
I opt for a P around both the label and the field, gives greater CSS hooks and encapsulates each form area nicely.
- aarongough 16y agoThat's what I generally do as well...
- bkudria 16y agoFact: you can wrap input elements in a label element. No extra for attributes required, either.
- deleted 16y ago[deleted]
- mr_justin 16y agoYes but if you want to float the label and have it cleared in the next "row", that's where the separation of elements comes in handy.