Learn HTML by Building a Cat Photo App - Step 46

What is the wrong here :
Describe your issue in detail here.

Indoor

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <section>
        <h2>Cat Photos</h2>
        <!-- TODO: Add link to cat photos -->
        <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</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>

<!-- User Editable Region -->

        <form action="https://freecatphotoapp.com/submit-cat-photo</form>
        <label><input id="indoor" type="radio"> Indoor </label>

<!-- User Editable Region -->

          <input type="text" name="catphotourl" placeholder="cat photo URL" required>
          <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/109.0.0.0 Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 46

Link to the challenge:

:balloon: Hi, welcome to the forum!
We see you have posted some code but did you have a question?

The last line
what is the error
it is saying to radio should be in the label

EDIT:

First error you have is the value you provided to the action attriute. You should ensure to close all quotes.

Second error you have is you closed the form earlier than expected. The input and the label should be nested in the form.

If you can take care of these the challenge would pass. Be careful with the quotes for your HTML attributes and also watchout not to close your tags prematurely.

By the way, welcome to the FCC community. :clinking_glasses:

no i need help in the radio button means the last sign of the code

to make the step’s test see the radio button correctly, the other code needs to be fixed.
You can click the reset button (which has an arrow turning on it) to undo the changes you made and then simply add the id attribute as requested.

The radio element is already nested correctly in the label but your other codes are wrong so the test isn’t passing.

I advice doing this:

and starting the challenge over

still not working
the kept it as nested

Did you reset the code as it was suggested above?

The correct code:

Mod Edit: SOLUTION REMOVED

please note the difference. You did not close your opening form tag correctly and the label tag goes within the form tag

It is great that you solved the challenge, but instead of posting your full 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.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

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