Home > Back-end >  Hi, so I'm confuse about nesting the existing input element inside a form element,
Hi, so I'm confuse about nesting the existing input element inside a form element,

Time:05-01

This is a practice thing inside freecodecamp.org

    <form action="https://www.freecatphotoapp.com/submit-cat-photo">
      <input text="text" placeholder="Cat Photo URL">
    </form>

*** It says that The existing input element should be nested within a form element.***

CodePudding user response:

Seems to be some strange bug going on with it identifying the indentation in your code.

Replace what you've got with the below, and it should allow you to continue.

  <form action="https://www.freecatphotoapp.com/submit-cat-photo">
  <input type="text" placeholder="cat photo URL">
  </form>

CodePudding user response:

There seems nothing wrong about what you're doing. Maybe try adding a slash before the more-than sign like so:

<input text="text" placeholder="Cat Photo URL"/>

If that's still not working try refreshing the page.

  •  Tags:  
  • html
  • Related