Hacker News new | ask | show | jobs
by guycook 4918 days ago
Yes, quite right. I probably wasn't clear enough there, but I was referring to this from the article:

  <input type="text" required><label>Social Security Number</label></input>
Should be marked up as

  <label>Social Security Number<input type="text" required /></label>
if you want to omit the 'for' attribute.

Doing it the wrong way around will still render as you expect, but defeats the purpose as you won't get the click-to-activate behaviour.

1 comments

Ah yes, that's horribly, horribly wrong. :)