I have a pretty simple question regarding buttons on HTML pages.
As we know, there are several possibilities for their creation. You can set display: block; on a so that you can assign it color, width, and height. But there is also an HTML button element and a submit element.
When to use what? For example, when creating a form, I need a submit element, if I remember correctly. But when I have a button outside the form, I can use regular a . But, nevertheless, I do not know to use button .
Could you help me with this?
Sven
source share