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

<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

<p>Things cats love:</p>
  <li>cat nip</li>
  <li>laser pointers</li>
<p>Top 3 things cats hate:</p>
  <li>flea treatment</li>
  <li>other cats</li>
<form action="">
<input type="text" placeholder="cat photo URL>

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=""> <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