Creating a form element. What am i doing wrong

I am doing exactly what the help videos are telling me, but it still comes up … Your

form

should have an

action

attribute which is set to

https://www.freecatphotoapp.com/submit-cat-photo

Your form should have an action attribute which is set to Thank You message for Cat Photo App form submission| freeCodeCamp.org.
Here’s my code…

<form action="/submit-cat-photo">

  <input type="text" placeholder="cat photo URL">

</form>

</main>
  **Your code so far**

It really helps if you don’t delete the link to the challenge.

What’s the full code?

what do you mean? I didnt delete anything

This looks like an auto generated post from the Ask for Help button, but with half of the code and the link to the challenge missing.

<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>

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

The URL you are using here doesn’t look like the URL the instructions are asking you to use.

Im sorry! I am very new at this! Thank you for the tips

This is the way the help video did it! I’ve tried it both ways and neither way passes

What is the code with the correct url?

Some of those videos are old. You always want to follow the instructions in the challenge. If the instructions say to use a certain URL then that is the URL you want to use.

1 Like