Form action doesn't work

Good work getting there!

Example:

<form action="/url-where-you-want-to-submit-form-data">
  <input>
</form>

Instructions:

Nest the existing input element inside a form element and assign "https://www.freecatphotoapp.com/submit-cat-photo" to the action attribute of the form element.

Given code:

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

Final code:

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

I’m not sure how make those instructions clearer, but if you have any ideas, I’m all ears. It looks like straight line copy-paste of instructions into the example to me, but I’ve been writing code for a while.

If this helps - my logic was - you need to open a form before you can add an action - hence the extra line. Then there was that pesky “input” line in the example. Those were my two biggest issues that led me to try a multitude of variations. Hope this helps. Thanks again.

The input in the example was showing where the existing input goes though? And there wasn’t a lone <form> in the example?

Anyways, you got there in the end.

sorry instructions were not clear to me
no need to reply –

I’ve been looking everywhere for an answer to what I was doing wrong. Thank you so much for your comment! Your advice allowed me to continue on to the next lesson.

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