Issue with this task "form action"

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

  **Your code so far**

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

  <a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

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

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


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>


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 |

Can you answer this please?

It’s not accepting my code

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

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.