Step 35 Cat Photo App

Tell us what’s happening:
I think I’ve tried every available option but the correct one. Please help!

I’m not understanding what form option they want use to use or how to use it. There’s no real guidance in how to get to the logical answer.

Step 35

The action attribute indicates where form data should be sent. For example, <form action="/submit-url"></form> tells the browser that the form data should be sent to the path /submit-url .

Add an action attribute with the value https://freecatphotoapp.com/submit-cat-photo to the form element.

  **Your code so far**

<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>
        <form action=" /submit-https://freecatphotoapp.com/submit-cat-photo">
        </form>
   
    </section>
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Safari/605.1.15

Challenge: Step 35

Link to the challenge:

3 Likes

The action attribute specifies where your data is going.

So there isn’t really a “logic” per say… its the actual attribute that has that description.

<form action="https://freecatphotoapp.com/submit-cat-photo">
        </form>
4 Likes

i submitted this code 10 times exactly like this but it didnt accept the same code untill i copied and pasted this one which was identical the the code i had written. can somebody tell me how this is possible. i new i had the code right i was just testing the system to see if it would accept my hand typed on rather than a copied and pasted variant.

1 Like

I had the same issue. I wrote the same and only this copied line got accepted… :sweat_smile:

1 Like

[quote=“Philip_B, post:2, topic:509922”]

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

same here , same problem it was frustrating, when I copied it , it worked omg

1 Like

I’ve tried typing it in and copy and paste, but it’s still not working, help!

I am having the same issue unfortunately

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