Learn HTML by Building a Cat Photo App - Step 36

what did I do wrong here ?

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <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"></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/106.0.0.0 Safari/537.36 Edg/106.0.1370.52

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

Link to the challenge:

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

Thats what I did I just included an image of my entries to emphsize my problem.
Anyways why do I get a massage you form element should have no content ?
I didn’t entered any other content besides the form link?

Sorry I didn’t see your code when i read the post so I thought you had posted 2 images (not sure why I couldn’t see it, but now I do)

Attributes (which action is) should be added to the opening tag of the respective element. This means that the action attribute should be added inside this element tag
<form>

This is exactly what I did why do I still get this massage?

action="https://freecatphotoapp.com/submit-cat-photo">

attributes are supposed to go inside the opening tags of their respective elements.
for eg.

The anchor tag has 2 attributes, target and href.

Try to write the action attribute inside the form tag.

Ok I got it, no > after the first form
Thanks for your help

1 Like

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