Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iuliana sagaidak
4,797 Pointschallenge question labels in HTML
Add a label above the radio button group that says "Shirt Size:". Don't associate it with any specific element.
<label>Shirt Size:</label>
<input type="radio" name="shirt_size" id="small" value="small">
<input type="radio" name="shirt_size" id="medium" value="medium">
<input type="radio" name="shirt_size" id="large" value="large">```
X Bummer! You need to use the text "Shirt Size:"
within the new label element.
2 Answers

iuliana sagaidak
4,797 PointsTanks you a lot for help, but I understood my mistake:
<label>Shirt Size:</label>
<input type="radio" name="shirt_size" id="small" value="small">
<label for="small">Shirt Size:</label>
<input type="radio" name="shirt_size" id="medium" value="medium">
<label for="medium">Shirt Size:</label>
<input type="radio" name="shirt_size" id="large" value="large">
<label for="large">Shirt Size:</label> ```
So I needed to put label after input, so I pass

Joshua Pyo
2,931 PointsI'm not sure why we have to add label for each radio input like this to pass this step. That's not the instruction provided:
"Add a label above the radio button group that says "Shirt Size:". Don't associate it with any specific element."
<label>Shirt Size:</label>
<input type="radio" id="small" value="small" name="shirt_size">
<label>Shirt Size:</label>
<input type="radio" id="medium" value="medium" name="shirt_size">
<label>Shirt Size:</label>
<input type="radio" id="large" value="large" name="shirt_size">
Isn't the answer supposed to be this?
<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">

Gonzalo Torres del Fierro
Courses Plus Student 16,750 Pointsmmm, I agree the instructions don't say anything about each input...
Antonio De Rose
20,882 PointsAntonio De Rose
20,882 PointsCould you please try again with your code, it works fine for me, and I presume, you are at challenge 3 of 5.