Action Command When Creating A Form Element

Hi - second time’s the charm! I’ve followed the directions/hints to a T, and even though it looks to me like my code matches the correct answer, I’m still getting an error message related to my action command. Anyone got an idea of what I’m doing wrong? Thanks!

  **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>

<form action="/https://www.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/93.0.4577.63 Safari/537.36 Edg/93.0.961.47

Challenge: Create a Form Element

Link to the challenge:

This isn’t quite the exact URL required.

Maybe I missed something… the URL I used was taken directly from the exercise instructions. What URL did you use?
Thanks!

Your input URL is wrong. Here is the line from your code that causes the error.

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

You add an extra :point_down:

" / " (slash or forward slash)

Before the URL.

It is great that you solved the challenge, but instead of posting your working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

Hi @monica.daggett !

As the others have mentioned you added an extra character when you weren’t supposed to.

All of these tests are looking for the exact output.
So if you don’t give it to them then it will fail.

Hope that helps!

Thanks all - I was really thrown off by the example ("/url"). I really appreciate it.

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