HTML HTML Forms Choosing Options Radio Buttons

David Elston
David Elston
8,112 Points

<br> doesn't work for me

I tried closing it, nope, adding multiples, nope. Is <br> working correctly in Workspaces?

3 Answers

Steve Hunter
MOD
Steve Hunter
Treehouse Moderator 56,146 Points

Hi David,

Can you share your code, please?

Thanks,

Steve.

David Elston
David Elston
8,112 Points

I just followed right along with the HTML forms code for the radio buttons lesson and found that even after triple checking, saving and refreshing the page it didn't produce the line break.

However I just finished the following lesson and it worked as expected on that lesson.

      <label>Age:</label>
      <input type="radio" id="under_13" value="under_13" name="user_age"><label for="under_13" class="light">Under 13</label>
      <br>
      <input type="radio" id="over_13" value="over_13" name="user_age"><label for="over_13" class="light">Over 13</label>
Jason Anders
MOD
Jason Anders
Treehouse Moderator 143,924 Points

Hey David, The line break tag is a single self-closing tag.

Did you try?

</br>
David Elston
David Elston
8,112 Points

Hi Jason,

I did attempt that but it also didn't work. Perhaps this was just an anomaly, because I tested it on the next lesson's work space and it worked as expected.

Oh well.