Step 43, Radio Button

Tell us what’s happening:
I am stock at step 43. I don’t know what I am doing wrong. My code doesn’t pass.
Please help me see where I am making error. Thank you

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

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

Challenge: Step 43

Link to the challenge:

Hi @zephyr.xyst ,

Please restart the challenge, you’ve added so many things.

You’re only supposed to add a simple input with the type of radio and the option text of Indoor.
Just like the example you have :

<input type="radio"> cat

Make sure to add this radio input before the text input not after.

Thank you for responding. But what do you means by [quote=“spark07, post:2, topic:525424”]
Make sure to add this radio input before the text input not after.
[/quote]

I mean it should be :

Thank you very much,
I restart the challenge and removed all un-necessary codes, and I placed the Radio button before the Input.

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

However I still get error .

Remove the name attribute and its value.
Also remove the indoor that’s before type :

Your code should be exactly the same as the example, except for the option text (cat) :

<input type="radio"> cat

Your code:

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

This is what I have and still not correct.

Indoor

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks.

```
Your code goes here
```

You can also use the “preformatted text” tool in the editor ( </> ) to add backticks around text.

Okay, Thank you
Here it is

<label>
            <input type="radio"> Indoor 
         </label>
       <input type="text" name="catphotourl" placeholder="cat photo URL" required>

Alright, you don’t need the label tags. Remove them.

You were very patient with me.
Thank you very much.
It is passed.

1 Like

Glad to help. You’re welcome.

Happy coding!

You’re missing an assignment operator between (Id and indoor)

Your code → id“indoor”
How it should be → id=“indoor”

Also; the input should not be embedded inside the label, it starts on its own;

/Sample syntax/

indoor

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