HTML code question

Out of context: Reply #7

  • Started
  • Last post
  • 12 Responses
  • fugged0

    use label god damn it!

    no seriously. that's what's it's intended for. Also, it allows the user to click on the text to give the field focus. This is super nice, especially with checkboxes and radios.

    You can still wrap your form rows inside of a list.

    <ul>
    <li><label/><input/></li>
    </ul>

    • Yup, that's what I just said damn it!ukit
    • ah fuck. if i actually read what you said, i would have seen that you are going to do that.fugged
    • I guess the <dl> element is also intended for this sort of thing, but it doesn't give you control at a row level, which is kind of annoyingukit
    • nothing to see here. move along...fugged
    • annoyingukit
    • hahaukit
    • :)fugged

View thread