Basic HTML and HTML5: Create a Form Element (Help!)

Im a bit lost when its telling me to nest my text input element within a form element.

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://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">

<form 
action="/submit-cat-photo">
</form>
<main>

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/create-a-form-element

1 Like

Hi, you’ve to nest your text field (“input tag”) inside a form element:

  <form action="/submit-cat-photo">
    <input type="text" placeholder="cat photo URL">
  </form>

thank you very much acvali

1 Like

I’ve been stuck on this for ages,thank you!

my problem same, plz some co,unitty member help

hey @ahemadasad96
this is the old post. please if you have any doubt create a new topic.

Hi @ahemadasad96!

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.