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 trialJacob Arias
4,353 PointsNeed 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
Jason Anello
Courses Plus Student 94,610 PointsHi Jacob,
It looks like you are adding the radio button markup inside your <select>
element.
It should be after the closing </select>
Keith Kelly
21,326 PointsThey are looking for the following:
<label>Shirt Size:</label>
Jacob Arias
4,353 PointsKeith, I tried that. It didn't work. Thank you.
Jacob Arias
4,353 PointsJacob Arias
4,353 PointsThat did it. Thanks Jason!