Episode

Why are div buttons bad, and why is semantic HTML important?

One of the strengths of HTML and JavaScript is the ability to completely control the user interface. However, some of the techniques we implement can make our application inaccessible. Sarah Higley (@codingchaos) explains the challenges with one of the most common custom controls - the div button, where the developer converts a div tag into something which behaves like a button, but isn't actually one.

Did you know... There are a full suite of tools available to you for ensuring everything you build is accessible? You can learn more about accessibility on Microsoft Learn.