Add a Submit Button to a Form / Action attribute

Hi guys, could u please tell me what is wrong with what I have written? And wanted to know what is ACTION attribute and for what is necessary?

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0.1 Safari/604.3.5.

Challenge: Add a Submit Button to a Form

Link to the challenge:

You need to put this code for button. Your Button code difers from it.

<button type="submit">Submit</button>

You can read about action there

1 Like

Thanks a lot. it’s still telling me Your submit button should only have the text Submit.
and wanted to ask why we have to write Submit after type=“submit”?

To show it on the screen. Submit is outside the brackets and show like the text on the button.
What did you write actually? Are you sure it’s right this time?

yes yes got it. submit button is shown with text. but in the lesson I didn’t see this structure. that’s why, didn’t know I have to write it.

You need to write Submit not Sumbit.

In the lesson you see this structure, they just write not Submit but something else outside the brackets. In the lesson there is this buttons submits the form phrase. You can write there all you want when you do your own page, you know

1 Like

Solved , thank u so much :slightly_smiling_face:

1 Like