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

what's wrong with my syntax?

It always tells me that task 3 isn't correct anymore when submitting my code.

Here is what I was pretty sure would be correct:

  <label>Shirt Size:</label>
  <label for="small">Small</label>
  <input type="radio" id="small" value="small" name="shirt_size">
  <label for="medium">Medium</label>
  <input type="radio" id="medium" value="medium" name="shirt_size">
  <label for="large">Large</label>
  <input type="radio" id="large" value="large" name="shirt_size">

Any help would be greatly appreciated!

2 Answers

idan ben yair
idan ben yair
10,288 Points

Hi Manuel I am not sure what the task asking you to do but try to put the label after the input button. If that doesnt work please post the challenge question.

Thanks.

Thank you, seems like that was what was wrong! :)

idan ben yair
idan ben yair
10,288 Points

No problem! Sometimes its just the small things, it happen a lot but that why programming is fun.. always solving a problem :)

Good luck! And code on!