I need help this is very hard

Tell us what’s happening:
I am stuck in this challenge please tell me what is wrong and what should I correct

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>
  
  <label for='indoor'>
   <label>
     
     <input      type='radio'name='indoor-outdoor'>indoor
  </label>
  
  <label>
   
   <input
  type='radio'name='indoor-outdoor'>outdoor
   </label>
  
</form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

1 Like

you have used extra label tags which are not necessary

  <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>

This might help, but
first read and understand the given example thoroughly before you try to solve it… half of the answer is provided in the given example itself.

Pro tip
Structure your code in a clean pattern/block , no need to use extra spaces and new lines …Good luck !

1 Like

It is great that you solved the challenge, but instead of posting your working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

2 Likes

I understand your concern but hints are given on every challenge and this was just a simple understanding issue…the members who post there queries are already frustrated and sometimes they want to quit too , sometimes it is better to give them a solution with an advice for the future problems.

1 Like

It is forum policy not to give out solutions. Please do not do so again.

3 Likes

Will keep that in mind

1 Like