Can anyone help me out with this?

Tell us what’s happening:
Describe your issue in detail here.

   **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://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>

 <p>Things cats love:</p>
 <ul>
   <label
   <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="/submit-cat-photo">
 <input type="text" placeholder="Cat Photo URL" required>

<button type="submit">Submit</button>
</form>

 <label>
   <input type="radio" name="indoor-outdoor"> Indoor
 </label>

 <label>
   <input type="radio" name="indoor-outdoor"> Outdoor
 </label>

 </main>
   **Your browser information:**

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

Challenge: Create a Set of Radio Buttons

Link to the challenge:

it says Each of your

label elements should have a closing tag.
Each of your radio button elements should be added within the form

what I noticed you don’t have a closing tag for form. add </form> before main.

@sharma.aman You should add your radio buttons within the </form> tag.


@emanzulfiqar It still shows me this

@sharma.aman Within the form tag means the form tag which already exists in your code. You are not asked to add separate form tags to each label tag.


@emanzulfiqar thank you so much brother for helping me out, but there’s one still left.

1 Like

why do you have two different form elements?

@ILM I recently started learning it. so, don’t know much btw thanks for pointing out my mistake.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.