Here’s what I get from the “Get a Hint” page:
<form> is an element used to gather information directly from the user’s input. When you use this HTML element you are identifying a section used to collect the user choices.
Inside this HTML element, you might insert a few
input tags, used to collect data in different ways based on the
All of this data will be sent to the page specified in the
action attribute of the form. This is simply a relative path that indicates the page that expects to receive this data.
In this challenge, you already have an
input element. All you need to do is wrap a
form tag around it. Do not forget the
action attribute. Use the value indicated by the challenge (doublecheck the syntax).
I followed the example and did add the required input but the output is telling me that:
" The existing input element should be nested within a form element."
Is the form element is <form action …?
**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> <form action="https://www.freecatphotoapp.com/submit-cat-photo"><input> </form> </main>
**Your browser information:**
User Agent is:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36
Challenge: Create a Form Element
Link to the challenge: