Quincy2
February 10, 2022, 10:11pm
1
I keep getting this message…
The existing input
element should be nested within a form
element.
**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="https://www.freecatphotoapp.com/submit-cat-photo"> <input type="text">
</form>
</main>
**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.2 Safari/605.1.15
Challenge: Create a Form Element
Link to the challenge:
Hello @Quincy2 ,
I think your input element is missing an attribute… In addition, I’d put it below the form element line, so it is clearer
Hope it helps!
1 Like
LucLH
February 10, 2022, 10:22pm
3
Hello @Quincy2 ,
The issue is that you updated the input tag that was provided into the code before you proceed to its update. I suggest you to rest the code to see how was the code or I can give it back to you:
Your <input>
tag:
<input type="text">
The one inside the original code:
<input type="text" placeholder="cat photo URL">
1 Like
Quincy2
February 10, 2022, 10:26pm
4
thank you so much for your help, it worked
Quincy2
February 10, 2022, 10:27pm
5
hello LucLH,
thank you so much, that was exactly was I was missing, I was able to move forward yay!!!
1 Like
LucLH
February 10, 2022, 10:28pm
6
Congrats! Good luck for the next challenges and try your best to keep the original code. Only update what they ask you because it can create these kind of situations
1 Like
Quincy2
February 10, 2022, 11:05pm
7
most def. this is a very useful tip
1 Like
system
Closed
August 12, 2022, 11:05am
8
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.