Finding Difficulty in coding

Finding Difficulty

My difficulty is that how to add “indoor-outdoor” in my name attribute for the challenge regarding to create a set of Radio Buttons.

I am actually new to coding and frequently finding difficulty coding languages, so this is the reason why am I stuck up here(because for you all, these are just way simple.) So please solve my problem as soon as possible .

Your code so far

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

<a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

<p>Things cats love:</p>
  <li>cat nip</li>
  <li>laser pointers</li>
<p>Top 3 things cats hate:</p>
  <li>flea treatment</li>
  <li>other cats</li>
<form action="/submit-cat-photo">
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
  <label for="indoor">
    <input id="indoor" type="radio" name="inndoor-outdoor">indoor
    <label for="outdoor">
      <input id="outdoor" type="radio" name="indoor-outdoor">outdoor


Your browser information:

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

Challenge: Create a Set of Radio Buttons

Link to the challenge:

You’ve got a little typo in the name attribute here.

1 Like

two tags with different input sharing the same name
<input id=“indoor” …>Indoor :radio_button:

<input id=“outdoor”…>Outdoor :radio_button: