Please i'm kind of stuck with the form action, any help please

Tell us what’s happening:

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://bit.ly/fcc-relaxing-cat" 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>
   <input type="text" placeholder="cat photo URL">
   <form action="/">
   </form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0.

Challenge: Create a Form Element

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/create-a-form-element

What problem are you having?

i am suppose to add an action which is set to /submit-cat-photo

The action is currently set to “/”.
What changes have you made?

i have been trying setting it , but still wrong. Don’t know what to do

i deleted what i did, that is why it is set to “/”

Ok. What have you tried?

''Your form should have an action attribute which is set to /submit-cat-photo‘’
this is what i am asked to do

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

It looks like you deleted “form”.

1 Like

it seems you have two opening form tags and one closing one

remember that the input element should go inside the form, when deciding which one to delete

1 Like