AzizB
December 27, 2020, 11:00am
1
Tell us what’s happening:
What am I doing wrong?
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 action="https://freecatphotoapp.com/submit-cat-photo"> <input type="text" placeholder="cat photo url"></form>
</main>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 Edg/87.0.664.66
.
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.
You should place the form tag along with its action attribute up there before the
tag that says Things cats love.
AzizB
December 27, 2020, 3:08pm
3
<form action="https://freecatphotoapp.com/submit-cat-photo">
<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>
<input type="text" placeholder="cat photo url">
</form>
you mean lıke this?
Kitto09
December 28, 2020, 5:24am
4
Yeah. It should work now. Also don’t forget to close the form tag.
Hi @AzizB !
This part is wrong
AzizB:
t photo url">
In the lesson url was all capital letters. The test won’t pass unless you fix that.
Also, even though the test will technically pass with the ol,ul, and p tags in the form, I would get in the habit of only placing inputs and labels inside the form tag.
I would personally place the form tag below the ending </ol>
and above the <input>
tag.
<form>
<input>
</form>
AzizB
December 28, 2020, 12:53pm
6
thank you very much it worked!!!