Tell us what’s happening:
actually im insert action attribute in form element but it is not working
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>
<form>
<input type="text" placeholder="cat photo URL">
<form action=" https://freecatphotoapp.com/submit-cat-photo">
</form>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
</main>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
.
Challenge: Create a Form Element
Link to the challenge:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
MrBondx
December 13, 2020, 5:22pm
2
<form>
<input type="text" placeholder="cat photo URL">
<form action=" https://freecatphotoapp.com/submit-cat-photo">
</form>
Your form should have one opening tag and one closing tag, your input should be between your form tags.
lasjorg
December 13, 2020, 6:21pm
4
You have two form elements.
Remove the one inside the outermost form element and move the action
to that outer form element.
Example
<form action="url-where-you-want-to-submit-form-data">
<input type="text">
</form>
1 Like
Still get this error message:
The existing input
element should be nested within a form
element.
1 Like
hrs070
December 13, 2020, 6:42pm
6
Place the form opening and closing tags around the input element. <form>
this is the opening tag. </form>
this is the closing tag. the action=""
attribute should be placed in the opening tag. add the given URL between the quotes.
1 Like