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

[SOLVED] Unassociated labels

I am stumped. The following label is supposed to be a label only and not associated with anything. But the challenge fails and tells me not to associate it with anything. Does anyone know what is wrong with the syntax?

      <label>Shirt Size:</label>

Mark-up looks good. Did you place it above the radio button group?

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

1 Answer

It was the positioning that was the problem.

Glad it's working! Happy coding!