6 ms·
Please don't ever make buttons with <div>s! [0] Focusable should be the default, as many folks can't (or don't want to) use a mouse. Use the semantic <button>
by prezjordan 11y ago
Please don't ever make buttons with <div>s! [0]
Focusable should be the default, as many folks can't (or don't want to) use a mouse. Use the semantic <button> tag or even just an <a> with role="button" and you'll get accessibility for free.
[0]: http://thatjdanisso.cool/a11y/clicking-with-a-keyboard/ http://thatjdanisso.cool/a11y/clicking-with-a-keyboard/
- jjuliano 11y agoHmm, thanks noted, let me research on using the <button> semantic vs. <div> more.