I am puzzeled by the last statement
EACH OF YOUR RADIO BUTTON ELEMENTS SHOULD BE ADDED WITHIN THE FORM TAG
Send your code and also specify the question please.
<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>
each of your button elements should be added within the form tag???
Inside your form element nest two label and input tags. One for indoor and the other is for Outdoor.
It is best to provide the full code and a link to the challenge.
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).
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>
// running tests Each of your radio button elements should be added within the
form
tag. // tests completed
If that is all of your code, then you have deleted large amounts of pre-provided code. You need to reset the challenge and not remove any of the provided code.
It still would be very helpful if you provided the link to the challenge you are working on.
<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>
<a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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://www.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>
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).
You radio buttons are at the very bottom of the code. They should be inside of the form element:
Here is the link to the challenge you are working on:
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.