Can't create a Form Element

Tell us what’s happening:
unfortunately I can’t get any further. My created code to “nest a existing input element inside a form element” is wrong.
Please help

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

Challenge: Create a Form Element

Link to the challenge:

Hi,

you should give your input a type attribute “type=” and then the type you want to have. Then it should work

1 Like

Hi @seymaokms!

Welcome to the forum!

I would reset the lesson and not touch the input.
Also, your action attribute can just be on one line with the opening form tag.

<form action="">
<input>
</form>
1 Like