Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ebzlo
on Dec 9, 2012
|
parent
|
context
|
favorite
| on:
Don't Be Lazy, Use HTML Labels Correctly
I always remembered this as being "invalid" HTML, but a quick Google search turns up nothing. Can anybody shed some light?
ygra
on Dec 9, 2012
|
next
[–]
It's not invalid; it's one of the two ways of using a label element. However, IE 6 didn't support it which is why I always resorted to the ID variant. The difference in typing isn't that large anyway.
highwind
on Dec 9, 2012
|
prev
[–]
Are you thinking Improperly nesting elements?
<i>Some <b>text</i> here</b>
In that case, the label tag surrounding the input tag doesn't violate this rule.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: