Issue with this task "form action"

Hi there I have an issue with this task “form action”, please help someone…

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
  <p>Click here to view more <a href="#">cat photos</a>.</p>

  <a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>

  <p>Things cats love:</p>
  <ul>
    <li>cat nip</li>
    <li>laser pointers</li>
    <li>lasagna</li>
  </ul>
  <p>Top 3 things cats hate:</p>
  <ol>
    <li>flea treatment</li>
    <li>thunder</li>
    <li>other cats</li>
  </ol>

<form action="/submit-cat-photo"> <input type="text" placeholder="cat photo URL" /> </form>

</main>

What is your issue? What challenge are you working on?

Create a Form Element
I used this code:

<form action="/submit-cat-photo"> <input type="text" placeholder="cat photo URL" /> </form>

BUT NOT ACCEPTING IT

Can you provide a link to the challenge? I don’t really want to play hide and go seek with the exact challenge you are working on to be able to help you.

Learn Basic HTML and HTML5: Create a Form Element | freeCodeCamp.org

Can you answer this please?

It’s not accepting my code
image

Ah, you edited the previous post with the problem ‘but not accepting it’.

It isn’t being accepted because you are using the wrong url for the action, just like the failing test says.

Your form should have an action attribute which is set to https://www.freecatphotoapp.com/submit-cat-photo.


Learning how to describe your problem more completely rather than just saying ‘it is broken’ is a critical programming skill. I highly recommend you try actually describing your problem instead of just saying ‘it is broken’.

1 Like

that is how I originally had it, but it still said the same thing…

It said the same thing because you used the wrong url. If you modify your code to use the right url, it passes all tests.

Ok thanks I’ll try again.

Thanks again it seems to be working now…

1 Like

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