Stuck again at adding form element. i did just like in the video, no difference and its still saying "Your text input element should be nested within a form element." any solution, please ? thank you!

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">
<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/84.0.4147.105 Safari/537.36.

Challenge: Create a Form Element

Link to the challenge:

I dont know what’s wrong with this code but I tried it and got the answer my code was:

<form action="https://freecatphotoapp.com/submit-cat-photo"> <input type="text" placeholder="cat photo URL"> </form>

Inspect or debug very carefully! You did not end quotation mark after [cat photo URL].

oh I got it. it is not nested. pay attention to the indentation and nesting!

how do i nest it ? i tried everything

mine is wrapped around while yours is not. Generally, indentation do matter. But here as @pkusaha said: correct the quotation mark first.

thank you so much!!! that was the problem…

1 Like