Basic HTML "Create a form" - can't work it out - Very new

I’m very new to this and I can’t quite figure out the issue, it must be something simple.

The error is attributed to" Your form should have an action attribute which is set to https://freecatphotoapp.com/submit-cat-photo"**

  **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://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/88.0.4324.190 Safari/537.36.

Challenge: Create a Form Element

Link to the challenge:

Hi there! Take a really close look at what’s in the action attribute – does it match exactly?

Just remove / at the starting from the link /https://freecatphotoapp.com/submit-cat-photo

Then your code should look like this

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

Hello! thank you, it’s resolved now. Much appreciated. I was confused as the example has a “/” :

 <input>
</form>

I should have checked thank you again.

1 Like

That’s great, thankyou for your help. Much appreciated.