DEV Community

Discussion on: Create a simple calculator using HTML, CSS and Javascript

Collapse
 
webreflection profile image
Andrea Giammarchi

This is button, with all accessibility concerns a button should have. A button exists with or without a form, and in this case it's the right tool for the job. With a form, it could work even without JS, by submitting value click after click.

Thread Thread
 
bkilinc profile image
bkilinc

Mostly, you are right. But a button may render differently accross browsers, needs reseting etc. May be, it is too much for a beginners article. I am not an advocate. Just exploring dev.to after a while.

Thread Thread
 
webreflection profile image
Andrea Giammarchi

A beginner should never ditch accessibility for layout that can be easily fixed ... layout is easy to fix, broken accessibility is a barrier.