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 action="https://freecatphotoapp.com/submit-cat-photo">
</form>
</main>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 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.
This text will be blurred
Marmiz
November 30, 2020, 2:08pm
2
Hi @Tanmay_Amkar , welcome to the forum.
“nesting” simply means “placed inside”, on in html
terms found in between the opening and closing tag of another element.
For example this is an <a> element nested inside a <p>
<p>
<a></a>
</p>
In case of this challenge it expects the existing <input>
to be nested inside a form
element:
<form>
<input />
</form>
Hope it helps
1 Like
what if it form element has action attribute?
Marmiz
November 30, 2020, 3:00pm
4
That should make no difference. You can mix and match with any number of attributes, properties and what not, but IF an element is INSIDE another element, that’s “nested”, HTML speaking
1 Like
i really tried everything but nothing is working . pls check my code so far and suggest some solutions
You are really close you just deleted the input that FCC gave you.
Here is the original.
<input type="text" placeholder="cat photo URL">
Take the input and place it in between the two form tags like @Marmiz showed in the example above.
1 Like
thanks a lot @jwilkins.oboe and @Marmiz . finally i was able to complete the challenge .
1 Like