O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

When I learned about the HTML form element, I was taught there is an action attribute that submits the form. Why don’t we have one?

A:

A: We don’t need the action attribute in the <form> because we’re not submitting the form to a server-side application. For this game, we’re going to be handling everything in the browser, using code. So, instead of submitting the form, we’re going to implement an event handler to be ...

From

Cover of Head First JavaScript Programming

Note

What is the difference between a "submit" and a "form" button in HTML?