Y
Hacker News
new
|
ask
|
show
|
jobs
by
mr_justin
5827 days ago
I opt for a P around both the label and the field, gives greater CSS hooks and encapsulates each form area nicely.
2 comments
aarongough
5827 days ago
That's what I generally do as well...
link
bkudria
5827 days ago
Fact: you can wrap input elements in a label element. No extra for attributes required, either.
link
mr_justin
5827 days 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.
link