What am I doing wrong? 132

Tell us what’s happening:
Hello I need to create a form Element, and nest the input element within the form element and include the action attribute. It keeps saying my input element is not inside my 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>
<form action="https://freecatphotoapp.com/submit-cat-photo">
<input type="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/86.0.4240.198 Safari/537.36.

Challenge: Create a Form Element

Link to the challenge:

Welcome, Bloopi.

For future posts, please include your question in the Tell us what’s happening section.

The more information you give us, the more likely we are to be able to help.


Otherwise, you appear to have changed the existing input element. Every little detail counts. So, I recommend you reset the code, and start afresh.

Hope this helps

1 Like

@Bloopi Hard to say as I don’t know the question you are asking. Either way welcome to the FreeCodeCamp Forums! :smile:

1 Like

thank you, I updated it.

Do you belive if I tell the error is in the input placeholder? hahaha
I don’t know explain why, but the placeholder content must be “cat photo URL”, not “Cat Photo URL”!

What you did was correct, this should be part of the validation of what you code, but, who knows hahaha

Good studies!

Oh geez! At least I had the rest correct. Thank you!

1 Like