Step 47 cat app, need help

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

Problem states:

Step 47

Notice that both radio buttons can be selected at the same time. To make it so selecting one radio button automatically deselects the other, both buttons must have a name attribute with the same value.

Add the name attribute with the value indoor-outdoor to both radio buttons.

Can someone please clarify what they mean by adding a name attribute to both radio buttons?

  **Your code so far**

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a target="_blank" href="">cat photos</a>.</p>
      <a href=""><img src="" alt="A cute orange cat lying on its back."></a>
      <h2>Cat Lists</h2>
      <h3>Things cats love:</h3>
        <li>cat nip</li>
        <li>laser pointers</li>
        <img src="" alt="A slice of lasagna on a plate.">
        <figcaption>Cats <em>love</em> lasagna.</figcaption>  
      <h3>Top 3 things cats hate:</h3>
        <li>flea treatment</li>
        <li>other cats</li>
        <img src="" alt="Five cats looking around a field.">
        <figcaption>Cats <strong>hate</strong> other cats.</figcaption>  
      <h2>Cat Form</h2>
      <form action="">
        <label><input id="indoor" type="radio" input value="indoor-outdoor"> Indoor</label>
        <label><input id="outdoor" type="radio" input value="indoor-outdoor"> Outdoor</label>
        <input type="text" name="catphotourl" placeholder="cat photo URL" required>
        <button type="submit">Submit</button>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:100.0) Gecko/20100101 Firefox/100.0

Challenge: Step 47

Link to the challenge:

1 Like

where you have the attribute input value= “indoor-outdoor”…change that to name=

you have the right idea just used the wrong attribute

1 Like

input id=“indoor” type=“radio” name=“indoor-outdoor”> Indoor
input id=“indoor” type=“radio” name=“indoor-outdoor”> Outdoor


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