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

  <p>Click here to view more <a href="#">cat photos</a>.</p>
  <a href="#"><img src="" 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="/submit-cat-photo"
  <input type="text" placeholder="cat photo URL"/>

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:

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.


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

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


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