|
|
|
|
|
by zlg_codes
954 days ago
|
|
Why is a clickable div an accessibility nightmare when the button element has a lot of browser-preset styles that are harder to override? Assuming you put all the relevant state styles into place like :hover and :active and whatnot, what's the problem? Button elements are best used in a form. If you aren't submitting a form, what's the button there for? |
|
This removes all the preset browser css styles. An accessible,styled <button> is much easier to achieve than an accessible, styled <div>