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 https://www.freecatphotoapp.com/submit-cat-photo " help meeeeee

  **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://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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>
<input type="text" placeholder="cat photo URL"><form action=/"https://www.freecatphoto.com/submit-cat-photo."
</form>
</main>
  **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=/"https://www.freecatphoto.com/submit-cat-photo."

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.

https://www.freecatphotoapp.com/submit-cat-photo
2 Likes

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


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.