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 trialTao Liu
1,411 PointsWhy after I have add labels to each of them and the compiler says that it looks like task 3 is no longer working?
yeah it's above
4 Answers
idan ben yair
10,288 PointsHi Tao,
You might be putting the labels before the buttons and they should be going after the buttons. Check out this link:
https://teamtreehouse.com/forum/web-design-html-forms-radio-button-challenge-task-3-4
It has more info about the issue, someone else had the same problem and it seems like he got that resolved this way.
Let me know if that works. :)
Sreng Hong
15,083 PointsHi Tao
You get that kind of bummer because you write the wrong code on the task 4 so it makes the challenge confused that your task 3 is not passed.
If you've passed task 3, your code should be like 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">
So at task 4, it's asked you to create and associate a label with each of the 3 shirt size radio buttons. It should be like this <label for="###">###</label>
and don't forget to it before <input>
.
Hope this helps.
Kim Cowart
32,918 PointsHiya!
That error is because a change was made to your task 3 item when you did task 4.
Unless the challenge asks you to add a new statement to a previous task's block of code, treat tasks independent of one another.
Hope that helps!
idan ben yair
10,288 PointsNo problem Tao! Good luck :)
Tao Liu
1,411 PointsTao Liu
1,411 PointsThanks man! Yeah this is the problem.