Nest the existing input element inside a form
element and assign "https://freecatphotoapp.com/submit-cat-photo"
to the action
attribute of the form
element.
<form action="/https://freecatphotoapp.com/submit-cat-photo"><input type="text" placeholder="cat photo URL"></form>
This is what I have and it does give me this error:
Your form
should have an action
attribute which is set to https://freecatphotoapp.com/submit-cat-photo
Is your action in quotes? (i.e. "https://freecatphotoapp.com/submit-cat-photo"
)
<form action="/https://freecatphotoapp.com/submit-cat-photo"><input type="text" placeholder="cat photo URL"></form>
Does that url exactly match character for character? The leading slash looks wrong.
I copied from the question, I believe it is correct.
What is the link to the challenge?
https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/create-a-form-element
The provided URL has no leading slash.
Thank you. Now I understood what you meant.
1 Like
Iām happy to help. These little typos happen all the time for all of us!