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

Stuck on question where it asks to add a label above the radio buttons of "Shirt Size" and not to attribute it.

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

Hi Zoe,

Can you post the link to the challenge? Also, your html isn't showing up.

See this thread: https://teamtreehouse.com/forum/posting-code-to-the-forum

3 Answers

Make sure its below the color selects I had a similar issue, location is everything The button submit should be what follows the label and radio buttons

Yes thanks Jason. I finally worked that bit out. It's what's ballsed me up in the last two challenges :-)

put the label after the select closing tag. the over all code looks like this

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

I don't think it matters but you shouldn't have the labels on each of the size buttons yet, that should be the next challenge task.

It looks okay, I would add a <br> after the shirt size label so it is actually above of the radon buttons