loading...
re: You forgot the most important point about buttons from an accessibility viewpoint. Using type="button" when you aren't using it to submit data! If...
 

TIL

The type of the button. Possible values are:

  • submit: The button submits the form data to the server. This is the default if the attribute is not specified, or if the attribute is dynamically changed to an empty or invalid value.
  • reset: The button resets all the controls to their initial values.
  • button: The button has no default behavior. It can have client-side scripts associated with the element's events, which are triggered when the events occur.

developer.mozilla.org/en-US/docs/W...

Code of Conduct Report abuse