How attribute form action to URL

Tell us what’s happening:

Nest the existing input element inside a form element and assign "" to the action attribute of the form element.

I have tried severally but is not working, how to attribute action to URL. I have taken one hour doing one many times, I mean i am stack here.

Your code so far

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.193 Safari/537.36.

Challenge: Create a Form Element

Link to the challenge:

what have you tried? the last part of code is missing

<form action="/submit-cat-photo" input type="text" placeholder="href="

<form action="/submit-cat-photo" input type="text" placeholder="href=">

the input tag should stay untouched, and you put the opening form tag before it and the closing form tag after it

I really suggest you reset code and try again

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).


<form action="">
  <input type="text" placeholder="cat photo URL" >
1.just create a <form> before input element and close it after input</form>
2.inside <form> write action="" ...<form action=""> then inside the quotes copy and paste the link

Happy coding

Thank you brother, it has worked.