Please help with beginning Form element

Tell us what’s happening: I’m so confused on how to create a form element. I feel that I am following directions however I keep getting it wrong. I’ve been at this for a good 30 minutes and I am lost. Can anyone go into further details on how to do this? The directions are kind of vague.

   **Your code so far**

** < form action= “https://freecatphotoapp.com/submit-cat-photo”>
< input>
< /form> **

I placed spaces after each beginning symbol so that it would show as a text

Please help!


<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://freecatphotoapp.com/submit-cat-photo">
<input>
</form>
 

 




   **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15

Challenge: Create a Form Element

Link to the challenge:

Hey so your form action is actually fine, I’m guessing your Input tag’s contents were erased? That challenge normally has this as the input

input type=“text” placeholder=“cat photo URL”.

I’m just saying what @drake.l said but slightly differently.

The intent of the exercise is to wrap the existing input tag in the form element - i.e. the tag, attributes, and closing tag, which you seem to have correct. You should not replace the input tag that the exercise began with. At this point, you can simply add the original attributes back to the input tag, which are the type and placeholder attributes and their corresponding values, as Drake has posted.

Excuse me if I sound verbose, I just want to make sure I’m using consistent terminology with the lessons.

1 Like

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