I keep getting a msg that says my form opening and closing tags are wrong



  <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>


    <li>cat nip</li>

    <li>laser pointers</li>



  <p>Top 3 things cats hate:</p>


    <li>flea treatment</li>


    <li>other cats</li>


  <form action="https://www.freecatphotoapp.com/submit-cat-photo"  form>

    <input type="text" placeholder="cat photo URL">


when I take the test it tells me im wrong it says

" Your form element should have well-formed open and close tags."

Hi there. Its hard to read your code as it is improperly formatted. When you ask for help its better to use the “Ask fro Help” button as this generates a post with all the correct information that we need to help you.

As to your question you don’t seem to have an opening form tag before your form or after. This should take the following form:


// My form contents

1 Like

thankyou for your help sir

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

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