Search code examples
htmlwebformsmarkup

Whats the right way to label things in a form?


I've seen lots of ways to label things in a form such as <label>, <div>, <span>, etc. Is there a right or wrong answer for this? Are there any advantages/disadvantages to any of these? Thank You


Solution

  • Label is best for accessibility (tab order, screen readers, etc)

    See more at: http://www.communitymx.com/content/article.cfm?cid=02310