Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Forms Choosing Options Create a Select Menu

Eugene Kuperman
Eugene Kuperman
195 Points

I don't understand what I need to do on this task.

I need to Add a label element, I don't understand exactly what I need to do. Please help.

2 Answers

Kelly von Borstel
Kelly von Borstel
28,880 Points

Hi, Eugene. I believe they want you to add a 'label' element tag for the select menu. It should be place directly above the menu and tied to the select menu using the 'for' attribute that matches the 'id' attribute of the select menu. Here's part of the code. I left question marks where the label tags go, and where the value of the 'for' attribute (that should match the 'id' attribute value in the following line) goes. If this doesn't make sense, let me know.

<form action="index.html" method="post">
      <h1>Shirt Order Form</h1>
      <??? for="???">Shirt Color</???>
      <select id="color" name="shirt_color">
          <option value="red">Red</option>
          <option value="yellow">Yellow</option>
          <option value="purple">Purple</option>
          <option value="blue">Blue</option>
          <option value="green">Green</option>
          <option value="orange">Orange</option>
      </select>
  </form>
Eugene Kuperman
Eugene Kuperman
195 Points

Thank you Kelly, I figured it out shortly after I posted my question.

I appreciate your fast response. :)