Tell us what’s happening:
Describe your issue in detail here.
I’m new to this and I don’t want to give up so easy . I don’t know what I’m doing wrong with this code can someone please help me
**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">
</main>
</form>
**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.3 Safari/605.1.15
Challenge: Create a Form Element
Link to the challenge:
The error you are getting is:
“Your form
should have an action
attribute which is set to https://www.freecatphotoapp.com/submit-cat-photo
.”
Your form is currently:
<form action="/submit-cat-photo">
Do you see how your action
attribute is not the same as what the instructions are asking for?
Make new space’s below line 18 and above line 20, the code below should have most of what you need just read the stuff at the bottom left and click run code every time you do something and it will tell you if you did it right don’t worry you can do this.
<form action="">
<input type="text" ">
</form>
i did all that but it keeps telling me this
Your form
should have an action
attribute which is set to [https://www.freecatphotoapp.com/submit-cat-photo](https://www.freecatphotoapp.com/submit-cat-photo)
.
Please keep an eye on opening and closing tags carefully. Your form should have its closing tags inside the main.
Please share updated code. We can’t really debug a description of what you changed.
system
Closed
August 26, 2022, 4:03am
8
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.