Inserting action attribute in form element

Tell us what’s happening:

actually im insert action attribute in form element but it is not working

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>
    <input type="text" placeholder="cat photo URL">
    <form action="">

<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.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36.

Challenge: Create a Form Element

Link to the challenge:

    <input type="text" placeholder="cat photo URL">
    <form action="">

Your form should have one opening tag and one closing tag, your input should be between your form tags.

You have two form elements.

Remove the one inside the outermost form element and move the action to that outer form element.


<form action="url-where-you-want-to-submit-form-data">
  <input type="text">
1 Like

Still get this error message:

The existing input element should be nested within a form element.

1 Like

Place the form opening and closing tags around the input element. <form> this is the opening tag. </form> this is the closing tag. the action="" attribute should be placed in the opening tag. add the given URL between the quotes.

1 Like