Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> It even makes it easier to style the text with CSS since it's wrapped in a specific tag!

Labels don't have to wrap inputs. In fact, mine almost never do, that's too much of a pain to align. They're usually linked to their input via @for (and at some point in the future, I'll be able to do that with inputs and forms via @form, what a glorious day that will be)



I think in this case "the text" refers to the label's text, not the text in the input that the label is @for.


Oh ok, missed that. Sorry.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: