Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
wbond
· 16y ago · 0 comments
It would be a huge improvement to the accessibility and semantics if the p tags were changed to label tags with for attributes.
Comments
[–]
IgorPartola
16y ago
Yes, I pretty much did not read past the <p>Name:</p> point.
[–]
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 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
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.