4 ms·
It would be a huge improvement to the accessibility and semantics if the p tags were changed to label tags with for attributes.
by wbond 16y ago
It would be a huge improvement to the accessibility and semantics if the p tags were changed to label tags with for attributes.
- IgorPartola 16y agoYes, I pretty much did not read past the <p>Name:</p> point.
- mr_justin 16y agoI 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.