Step 47 - add name attribute to radio button

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

  **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> <name="indoor-outdoor" input id="indoor"  type="radio"> Indoor</label>
        <label> <name="indoor-outdoor" input id="outdoor" type="radio"> 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36

Challenge: Step 47

Link to the challenge:

Could someone please look into my code and tell what is wrong in the code ?
I have given the same name attribute values to both the radio buttons but it shows error that they should be between the label tags.



The element should always stary with input. Then add the name tag the same way you implement id and type. The way you have implemented the code looks like the element is a name element and not an input element.

Correct Syntax:

<input name="" id="" type="">

Hello I am stuck and need help please.

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

i’d start by checking your spacing :3

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