Just use button -- A11ycasts #05

91 275
19.6
Следующее
21.09.16 – 86 5021:15
Building a Website #Day0
Популярные
192 дня – 3 651 53634:13
What's new in ChromeOS (Google I/O ‘24)
Опубликовано 16 сентября 2016, 17:00
Talking about tabindex and custom controls is super fun, and we'll definitely be doing more of it in the future. But I wanted to pause for a moment and shine a light on some of the awesomness of the humble button element. Too often I see developers use divs or spans to make buttons, but when you do this you're missing out on SO MANY FEATURES. You may not realize just how much accessibility and general purpose functionality is built into the simple button, but it's actually a wonderful tool that should be your first and last option whenever you're adding an action to your page.

So today I want to sing the praises of button and clue you in to a few handy features you might not have seen before.

Synthetic Click Activation in the HTML spec
goo.gl/Ey4RBf

Watch all A11ycasts episodes: goo.gl/06qEUW

Subscribe to the Chrome Developers YouTube channel for updates on new episodes of A11ycasts: goo.gl/LLLNvf
автотехномузыкадетское