Basic HTML and HTML5 - Create a Form Element

I am having trouble with the last part of my code where it wants me to nest the input element in between the form elements (I’ve put stars where I need help). I’ve asked my uncle and my cousin(both work with computer science) but still even they weren’t able to figure it out. I believe I have nested the element and I’m not sure why it’s not working. I’ve tried everything from searching google to asking family. The error commentary keeps telling me I need to nest the input in between the form elements. Thanks.

<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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36

Challenge: Basic HTML and HTML5 - Create a Form Element

Link to the challenge:

Don’t change the input element. It should still have a type and placeholder attribute.

You might need to reset the lesson to get those back.

2 Likes

It worked ! Thank you so much.

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