Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mr_justin
· 16y ago · 0 comments
I opt for a P around both the label and the field, gives greater CSS hooks and encapsulates each form area nicely.
Comments
[–]
aarongough
16y ago
That's what I generally do as well...
[–]
bkudria
16y ago
Fact: you can wrap input elements in a label element. No extra for attributes required, either.
[–]
mr_justin
OP
16y ago
Yes 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.