How do i nest an existing input into a form element?

Tell us what’s happening:
How do i nest an existing input into 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>

<form action="https://freecatphotoapp.com/submit-cat-photo"><input type="text"spaceholder="cat photo URL"></form>


</main>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36.

Challenge: Create a Form Element

Link to the challenge:

it seems you want to be in space instead of a place

2 Likes

I don’t really understand what the above response means, but what is your question, pinini? That is the correct code for the form as far as I can see.

Hi, you nested your input element in your form element and only problem that I see in your input element code is placeholder(spaceholder is wrong).

2 Likes

thanks ZaraK, this is the challenge that gave rise to my question.
“Nest the existing input element inside a form element and assign "https://freecatphotoapp.com/submit-cat-photo" to the action attribute of the form element.”

he wrote spaceholder instead of placeholder
sorry to not be explicit, i didn’t know if i have to answer him clearly or let him search the error with an evidence.

2 Likes

okay thanks, let me try again.

1 Like

Ah I see! Yes, I didn’t spot that! That’ll do it.

2 Likes

The lesson asked you to;
“Nest the existing input element inside a form element and assign "https://freecatphotoapp.com/submit-cat-photo" to the action attribute of the form element.”

You changed the existing input element. That’s why the failing test says;
The existing input element should be nested within a form element.

Do not change the existing input element.
Reset the lesson and start again.

3 Likes

thank you, its work after applying your instructions

1 Like