Form Element action attribute wont work

Tell us what’s happening:
I nested the input element in form tags. Now I can’t get the action attribute inside the form tag work. Please help.

Your code so far

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

<li>cat nip</li>

<li>laser pointers</li>

<li>lasagna</li>

Top 3 things cats hate:

    <li>flea treatment</li>
    
    <li>thunder</li>
    
    <li>other cats</li>
    

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

<a href="#"><img src="https://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>
<form action="/https://freecatphotoapp.com/submit-cat-photo"><input type="text" placeholder="cat photo URL"></form>
</main>

Your browser information:

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

Challenge: Create a Form Element

1 Like

Hello @Aman215.
The reason you are failing the challenge is because you have an incorrect url set in the action attribute.

Notice the forward-slash ‘/’ before https:// in the URL. That is unnecessary.

Happy Coding!

1 Like

Thanks dude it worked. But while I was learning it said you have to have a slash before the URL.

1 Like

That is for relative URLs only. For absolute URLs (the one’s that start with https://) doesn’t need the first forward slash.

More info about absolute and relative paths:

Happy Coding!

1 Like

@aishahbanana, the issue here has been resolved.
Since your issue may be different it’s best to open your own thread with your own code. If you’re still having an issue please,

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

i am having the same problem the info says your frm should have an acton attribute which is set to https://free cat photoapp.com/submit-cat-photo I have tried this and it still will not pass me

1 Like

@rgflo64, the issue in this post has been resolved. Your issue may be different. Please,

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

I have typed my code as shown in the first thread and I get an error code
Thanks

There’s a difference somewhere. The only way to help is if you use the Ask for Help button as described.

Hello @rgflo64. As @Roma said, please open a new topic by clicking on the “Ask for Help” button. If you do so, many people can help you. This topic has been resolved and should not be continued.