freeCodeCamp Challenge Guide: Add a Submit Button to a Form



What does the _form action="/submit-cat-photo"_do?
Do I need to include _action="/submit-cat-photo"_as an attribute?

  • Create a new button element with the text “Like”.
  • Your new button should have the class btn.
  • Make sure all your button elements have a closing tag.

Got the first and last instruction but the “class btn” is the problem, I try hard but dont get it


It just tells you what is supposed to be submitted
< form action="/submit-cat-photo">submit

< /form>
I left spaces by < and> so you could see it