I need help with this ,please "Your form should have an action attribute which is set to https://www.freecatphotoapp.com/submit-cat-photo

Tell us what’s happening:
Describe your issue in detail here.

 I need help with this, please "Your form should have an action attribute which is set to https://www.freecatphotoapp.com/submit-cat-photo"

  **Your code so far**

<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://www.bit.ly/fcc-relaxing-cat" 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>
<input type="text" placeholder="cat photo URL"/>

<form action="/submit-cat-photo"><input type="text"></form>

  **Your browser information:**

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

Challenge: Create a Form Element

Link to the challenge:

this doesn’t seem to be the action attribute that the test require, there is written to use a specigic link there, you have a different one

you also need to build the form element around the existing input element, you have created a new one instead

1 Like

I have tried everything possible but still it’s not working.Can you please be more specific because i don’t understand what to do .

Till now, you have your existing input element. Nest that in a form element which has an action attribute set to : https://www.freecatphotoapp.com/submit-cat-photo

Do not create separate input element

You have multiple form elements on the page, but only need 2. I would reset the challenge and do it again. You need to keep the existing input and add the form around it. As it stands, you have 3 form elements, but only need 2 and the 2nd one is formatted incorrectly.

@ravhawk, I did what you advised me but still isn’t working. Can you be more precise with examples,please

Never mind I finally understand what you were saying and I got it. I appreciate your help, thanks!

1 Like

Good, glad to hear you solved it!

I did what you advised but it still does not work.
What can i do?

You should nest input element inside form and add to form attribute action like this:

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

It is now working

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