Can i ask for help at this part

Tell us what’s happening:

Im struggling at this part : Create a Form Element - The existing input element should be nested within a form element.

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>
<input type="text" placeholder="cat photo URL">
<form action="https://freecatphotoapp.com/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/86.0.4240.193 Safari/537.36.

Challenge: Create a Form Element

Link to the challenge:

Hi @Jeremiah_124. Welcome to FCC. The error message is quite clear. This is how you are supposed to nest existing input element inside form element.

<form>
     <input >
</form>

Hey @Jeremiah_124!
Welcome to the FCC forum.

You have nest input in the form tag.

If you don’t know nesting means here is an example.

<div>
    <p>some text here...</p> // here p is nested in its parent tag.
</div>

In your case, the input should be nested in its parent tag form
Example

<form>
    // your code here.
</form>

Hope this helps you.

Thanks and happy coding!

i tried it in that order but still,it didn’t work

Here’s what i did

oh nevermind i figured it out thanks guys! :slight_smile:

1 Like