What was the intended purpose of the HTML <input type="button">
element, taking into account that Javascript appeared after HTML (hence making me doubt that JS was the intended purpose)?
A button is a fastener that joins two pieces of fabric together by slipping through a loop or by sliding through a buttonhole.
The CSS Buttons are used to decorate the web pages by applying the various styling properties to the button. Buttons are used for event processing and interacting with the user. From submitting a form to getting to view some information, we have to click on buttons.
Buttons convey a specific call to action (CTA), like “Submit” or “Pay.” Buttons tell users, “if you click me, something will happen.” Designers also use buttons to communicate with users through states, color, and text.
Not sure but, if I remember correctly, <input type="button">
has been added with HTML4.0. Its first draft was from 1997, so 2 years later ECMAScript. So probably is has been introduced exactly for JS purposes.
Take a look to these links provided in comments by Felix Kling:
type=button
listed)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With