Nesting an existing input into a form element

Tell us what’s happening:
Hello, I’m trying to complete task 19 in the basic HTML course and I think I’ve entered in the correct code but it shows that I’ve failed the following part of the task: " Your form should have an action attribute which is set to". I also tried doing just: after looking at the forum, but even that did not work.

  **<form action="/">

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

<a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

<p>Things cats love:</p>
  <li>cat nip</li>
  <li>laser pointers</li>
<p>Top 3 things cats hate:</p>
  <li>flea treatment</li>
  <li>other cats</li>
<form action="/">
<input type="text" placeholder="cat photo URL">
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36

Challenge: Create a Form Element

Link to the challenge:

Hello everyone, I managed to solve the issue. I changed:

<form action="/">"


"<form action="">"

I.e., I removed the “/” in front of the URL. The reason I made this mistake was because the example showed the following code:

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

I hope this helps anyone else also stuck on this.

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