How do you nest a text input element within a form element?

Nesting means putting an element between the opening and closing tags of another element. So you’ll want to put the <input> between the <form> and the </form>.

5 Likes

thanks … :slight_smile:

5 posts were split to a new topic: Make background of a placeholder transparent

i try this but this not working

1 Like

can you keep output image

1 Like

@Chaerunhardiansyah

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

Thank you so much!!!

I don’t understand why we would need to do this? I understand that it allowed me to proceed, but it made no changes to my simulator.

Depending on the situation, you may put an <input> outside of any form. On the other hand, a form simply doesn’t make sense without any input fields in it.