Should i repeat lable text in for="...." and id=".."?

Posted by metal-gear-solid on Stack Overflow See other posts from Stack Overflow or by metal-gear-solid
Published on 2010-05-24T06:36:21Z Indexed on 2010/05/24 6:41 UTC
Read the original article Hit count: 160

  • Is there any cons of 2nd method? Why http://www.webstandards.org/ decided to use 2nd method
  • Is first method better than first for screen reader users?

First

<label for="name">Name</label>
      <input id="name" />

Second

<label for="n">Name</label>
      <input id="n" />

© Stack Overflow or respective owner

Related posts about css

Related posts about XHTML