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

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

#1


#2

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>.


#3

thanks … :slight_smile:


#4

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


Make background of a placeholder transparent
#5

i try this but this not working


#6

can you keep output image


#7

@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>