"Basic HTML and HTML5: Create a Set of Radio Buttons"

Hello There!

I’ve been trying for hours and also did research on Google. Where am I supposed to add the “form tag” saying for each radio?

Thanks a lot!

C.B.

Indoor Outdoor

Your code so far


<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>

<p>Things cats love:</p>
<ul>
  <li>cat nip</li>
  <li>laser pointers</li>
  <li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
  <li>flea treatment</li>
  <li>thunder</li>
  <li>other cats</li>
</ol>
<form action="https://freecatphotoapp.com/submit-cat-photo">
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>
</main>
<label for="indoor">
<input id="indoor" type="radio" name="indoor-outdoor">Indoor
</label> 
<label for="outdoor">
<input id="outdoor"type="radio"name="indoor-outdoor">Outdoor
</label>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Hello,

Right now your radio buttons come after the closing tag for your form </form>, but the challenge wants you to put the radio buttons inside of the form, or inbetween the opening and closing form tags.

Hello JeremyLT!

I really appreciate your help. I am trying and still nothing! Could you be more specific than that? I can not figure this out! :grimacing:

Thanks!

How have you updated your code so far?

These lines all look ok to me but should be inbetween your <form> and </form> tags.

Hello JeremyLT!

I managed it! Thanks soooo muchhh for your help!!! :wink: :smiley:

C.B.

1 Like

How come i see some examples of check box forms where value is included and sometimes not included, also do the attributes " id " " name " ect have to be in any specific order within the element?

Regards , Beginner

2 posts were split to a new topic: Help with create a set of radio buttons