In web design you usually have two type of buttons, a button that serves as an action or one that toggles states.
An action button triggers an event, for example like a submit button
. These buttons are usually a gateway towards another action or view.
A state button switches or toggles the state and/or appearance of the interface. These buttons usually have an indicator inside themselves to show the current state.
A common example is a Light/Dark
button.