Basic HTML and HTML5 - Create a Form Element

Tell us what’s happening:

It keeps saying i should nest the input element in the form. I believe I have done that.

Your code so far


<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="text" placeholder="cat photo url">
   </form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Mobile Safari/537.36

Challenge Information:

Basic HTML and HTML5 - Create a Form Element

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

You forget type attribute with the value "text " and read carefully placeholder text “URL”
@Cockysam

1 Like

Welcome to FCC, You need to add a <form></form> element and have the <input> inside then you will get the tick dont forget the <form> element needs a action attribute with a value of https://www.freecatphotoapp.com/submit-cat-photo. Hope this helps if it does i would greatly appreciate a like, happy coding friend.

1 Like

Your input should have a type atrubute of text like this:

<input type="text">

not like this

<input="text">

What about the <form action

Okay, thank you.
I have done this and still no result.

Hello!
Can you please show us your updated code

1 Like

We really need to see you new code.

1 Like

Thank you I have figured it out

1 Like

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