Cannot find error in code for input inside a form

Hi, new to coding. I can’t find what I am doing wrong here. Can anyone see the issue in my code for nesting an input within a form, I am getting the follow error: “The existing input element should be nested within a form element”.


  **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/97.0.4692.99 Safari/537.36

Challenge: Create a Form Element

Link to the challenge:

1 Like

your placeholder doesnt match what the problem started with (url vs URL).
reset your code, and just add the form tag around it, dont touch the input.

Brilliant, that worked! Thanks

no problem. sometimes it takes a second set of eyes to see what is right in front of us :slight_smile:


Calm down and go through your code, the answer is right in front of you. Its just a little mistake you made there.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.