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 Radio Buttons

Jacob Arias
Jacob Arias
4,353 Points

Need help with a challenge.-Code Snapshot Included

Challenge: Add a label above the radio button group that says "Shirt Size:". Don't associate it with any specific element.

Not sure what's wrong with my code below.

<label for="color">Shirt Color:</label>
      <select id="color" name="shirt_color">
        <label>Shirt Size:</label>
        <input type="radio" id="small" value="small" name="shirt_size">
        <input type="radio" id="medium" value="medium" name="shirt_size">
        <input type="radio" id="large" value="large" name="shirt_size">

2 Answers

Hi Jacob,

It looks like you are adding the radio button markup inside your <select> element.

It should be after the closing </select>

Jacob Arias
Jacob Arias
4,353 Points

That did it. Thanks Jason!

Keith Kelly
Keith Kelly
21,326 Points

They are looking for the following:

<label>Shirt Size:</label>
Jacob Arias
Jacob Arias
4,353 Points

Keith, I tried that. It didn't work. Thank you.