Form element, creating it

Tell us what’s happening:
Describe your issue in detail here.
Hello i am having trouble creating a form element. I just need one step “The existing input element should be nested within a form element.” i fix that then its wrong again with " Your form should have an action attribute which is set to " help meeeeee

  **Your code so far**

<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

<p>Things cats love:</p>
  <li>cat nip</li>
  <li>laser pointers</li>
<p>Top 3 things cats hate:</p>
  <li>flea treatment</li>
  <li>other cats</li>
<input type="text" placeholder="cat photo URL"><form action=/""
  **Your browser information:**

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

Challenge: Create a Form Element

Link to the challenge:

The input elements need to be inside the form element.

Look at the example code and do the same thing only using the input element that is in the starting code.

<form action=/""

The tag is missing the closing > and the action value has a / at the beginning and . at the end, that shouldn’t be there.

Also, the URL is just wrong. This is the URL your are asked to use.

thanks so much!! ive been stuck for what feels like forever

what am i doing wrong

this is where i am at

Instead of the empty input element you have inside the form you have to use the existing input element that is in the starting code. You can reset the challenge to get it back if you deleted it.

This is the existing input element you have to use:

<input type="text" placeholder="cat photo URL">

You can just replace the empty input element with it.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.