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

4 of 5 HTML Forms HELP.

Question 3 of 5

  <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">

  <button type="submit">Place Order</button>

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Question 4 of 5

<label>Shirt Size</label>

  <label for="shirt_size">Shirt Size</label>
  <input type="radio" id="small" value="small" name="shirt_size">

  <label for="shirt_size">Shirt Size</label>
  <input type="radio" id="medium" value="medium" name="shirt_size">

  <label for="shirt_size">Shirt Size</label>
  <input type="radio" id="large" value="large" name="shirt_size">

  <button type="submit">Place Order</button>

Oops! It looks like Task 3 is no longer passing.

So i go ahead and Label the radio button and it says the previous question doesn't pass when i just passed it no problem.

Need help tree house community.

2 Answers

Hi Peter,

I believe the challenge is expecting the radio button labels to be after the radio button inputs.

Actually the code challenge will pass if only the first label is after the button. It appears that the code challenge algorithm gets confused by another label directly after the generic shirt size label.

<label>Shirt Size</label>

  <input type="radio" id="small" value="small"  name="shirt_size"><label for="small">Small</label>

  <input type="radio" id="medium" value="medium"  name="shirt_size"><label for="medium">Medium</label>

  <input type="radio" id="large" value="large"  name="shirt_size"><label for="large">Large</label>

  <button type="submit">Place Order</button>

Hi there thankyou, your right!!! I needed a break, maybe that's enough treehouse for one weekend. lol I rewatched the video and copied. the previous were slightly different.