Struggling please help

Here is a portion of what I am currently on. I am not sure what is wrong, if someone could help me, that would be great, thanks!


<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>
<input type="text" placeholder="cat photo URL">
<form action="/submit-cat-photo"></form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36 Edg/83.0.478.58.

Challenge: Create a Form Element

Link to the challenge:

Hey there @Stazify1!

The lesson asks you to nest your <input> element inside the <form> element, however if you look at the last few lines of your code, your <input> element is outside the <form> element.

Just for clarity here is a <p> nested in a <div>:

<div>
  <p>Random text used as part of an example</p>
</div>
1 Like

Hello and welcome to the FCC community~!

You are very close - your <input> element needs to be nested inside your <form> element.