How attribute form action to URL

Tell us what’s happening:

Nest the existing input element inside a form element and assign "https://freecatphotoapp.com/submit-cat-photo" 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


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

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="https://freecatphotoapp.com/submit-cat-photo

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

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 (’).

solution:

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