Nesting within a form element

Your form should have an action attribute which is set to Thank You message for Cat Photo App form submission| freeCodeCamp.org

Instructions: Nest the existing input element inside a form element and assign "https://www.freecatphotoapp.com/submit-cat-photo" to the action attribute of the form element.

I cannot figure out what I am doing wrong.

   **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://www.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""/https://www.freecatphotoapp.com/submit-cat-photo"><input type="text"placeholder="cat photo URL">

</form>
   
</main>
   **Your browser information:**

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

Challenge: Create a Form Element

Link to the challenge:

1 Like

if you delete this from action :slight_smile:

/submit-cat-photo""/

it will pass…

This is giving me the same message???

1 Like
action ="https://www.freecatphotoapp.com/submit-cat-photo"

hope this help…
you dont need this part:

/submit-cat-photo""/

1 Like

"https://www.freecatphotoapp.com/submit-cat-photo" to the action attribute of the form element.

hope thet meens thet is passing the lesson

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