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

Nicole Medley
PLUS
Nicole Medley
Courses Plus Student 5,857 Points

Why do I keep getting an error message that task #2 is no longer passing when I put in the code for task#3.

http://teamtreehouse.com/library/html-forms/choosing-options/create-a-select-menu

In the above challenge, I put in the code <optgroup label="Shirt Color"> with the closing end at the end of the option codes and I keep getting the message that Task#2 is no longer passing. I don't understand what is going on!

Be sure to copy and paste your code here so we can see what may be the problem. Check out the markdown cheatsheet on how to format the code as well.

2 Answers

Here is what it should look like. Hope this helps!

<form action="index.html" method="post">
      <h1>Shirt Order Form</h1>
      <label for="color">Shirt Color:</label>
      <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>
Nicole Medley
PLUS
Nicole Medley
Courses Plus Student 5,857 Points

thanks Armando, I figured out what I was doing wrong!