Form and Action Attribute

Tell us what’s happening:
Im confused why it is tell me i dont have these components in my code
Make sure your form has an action attribute which is set to /submit-cat-photo
Make sure your form element has well-formed open and close tags.

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>
  <form action="/submit-cat-photo"
  <input type="text" placeholder="cat photo URL"/>
  </form>
<main/>

Your browser information:

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

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

This is the part you are not doing correctly. You might want to review what constitutes an opening tag. You are missing a very important character which “completes” the tag syntax.

Hint: It is the mirror image of <

Thank you for that but when i do that it says to Make sure your form has an action attribute which is set to /submit-cat-photo so i don’t know what i’m doing wrong besides that

I assume that you are still not closing your opening form tag with a >

That is what I was implying above. If you have made changes to your code and still failing the tests, please copy/paste all of your code into a reply. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

markdown_Forums

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

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

  </form>

This is the code I have

Last Hint: Element attributes reside inside the opening tag. Below is an example of an h2 element with a class attribute:

<h2 class="myClass">This is an h2 element</h2>

Look carefully at the last code you posted and see if you can figure out where the action attribute should be located.

FYI - input elements are self-closing, so they do not have an opening and closing tag. Instead, they look like:

<input type="text" placeholder="my place holder" />