Just use button -- A11ycasts #05

Subscribers:
791,000
Published on ● Video Link: https://www.youtube.com/watch?v=CZGqnp06DnI



Duration: 7:34
86,962 views
1,488


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
https://goo.gl/Ey4RBf

Watch all A11ycasts episodes: https://goo.gl/06qEUW

Subscribe to the Chrome Developers YouTube channel for updates on new episodes of A11ycasts: http://goo.gl/LLLNvf







Tags:
Chrome
Developers
Google
Web
Product: Web
Fullname: Rob Dodson
Location: MTV
Team: Scalable Advocacy
Type: Screencast
GDS: Full Production
other: no green screen
accessibility
a11y
allycast
AccessibilityCasts
#5
epsiode 5
ep 5
table index
custom controls
button
button element