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?


  **Your code so far**

<p>Click here to view more 
  <a href="#">cat photos</a>
  <form action="submit-cat-photo">
    <input type="text" placeholder="cat photo URL">

<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">
  **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 "" 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.

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

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.