Specifying an action attribute on your form element

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

  **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://www.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>
<input type="text" placeholder="cat photo URL">
<form action="https://www.freecatphotoapp.com/submit-cat-photo form-data">
<input type="text"placeholder="cat photo URL"> 
</form>
</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 13904.77.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.147 Safari/537.36

Challenge: Create a Form Element

Link to the challenge:

Hi @rkutz0123 ,

Check the url for the action attribute.

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

Thank you brotha,

but what is the solution then … ??

The correct url is given in the instruction:

"https://www.freecatphotoapp.com/submit-cat-photo"

What is exactly my mistake here ? Please help …

The existing input element should be nested within a form element.

Your form should have an action attribute which is set to [https://www.freecatphotoapp.com/submit-cat-photo](https://www.freecatphotoapp.com/submit-cat-photo).

The existing input element should be nested within a form element.

Your form should have an action attribute which is set to [https://www.freecatphotoapp.com/submit-cat-photo](https://www.freecatphotoapp.com/submit-cat-photo).

Hey @rkutz0123 ,

As I said earlier, the only problem in your code was the url, it had some extra words in it.

your code:
<form action="https://www.freecatphotoapp.com/submit-cat-photo form-data">

The url should just be:
"https://www.freecatphotoapp.com/submit-cat-photo"

See the difference? Removing the extra words should help it work.

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