Create a Form Element Lesson

I cannot complete this lesson. Even with people giving the answer and I retype it in. It still comes up with an error. Can someone please post what the answer is and where it is located in the entire code?

Thanks

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more 
  <a href="#">cat photos</a>
  <form action="submit-cat-photo">
    <input type="text" placeholder="cat photo URL">
  </form>
    
</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>
<input type="text" placeholder="cat photo URL">
</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.82 Safari/537.36

Challenge: Create a Form Element

Link to the challenge:

Hi @ToddPhil !

Welcome to the forum!

The issue is that you have misunderstood the directions here
Nest the existing input element inside a form element

This is the existing input.

Instead, you created a new input here which is incorrect

Also the action attribute is incorrect here

The directions say this
and assign "https://www.freecatphotoapp.com/submit-cat-photo" to the action attribute of the form element.

I would reset the lesson.
Wrap your form tags around the existing input. Don’t not create a new input.

</ol>
OPENING FORM TAG GOES HERE
<input type="text" placeholder="cat photo URL">
CLOSING FORM TAG GOES HERE
</main>

Make sure to use the correct url I showed you from the instructions for the action attribute.

Hope that helps!

Thank you for your help. Yes. It finally worked.

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