Open Menu
AllLocalCommunitiesAbout
lotide
AllLocalCommunitiesAbout
Login

A "section" without an accessible name is nothing but a "div".

⁨62⁩ ⁨likes⁩

Submitted ⁨⁨3⁩ ⁨months⁩ ago⁩ by ⁨Cat@ponder.cat⁩ to ⁨technology@lemmy.world⁩

https://www.stefanjudis.com/today-i-learned/section-accessible-name/

source

Comments

Sort:hotnewtop
  • Eiri@lemmy.ca ⁨3⁩ ⁨months⁩ ago

    That’s good and all but man is that person a big fan of aria properties.

    To be clear, they’re not bad, but they’re a little brute-forcey. There’s often a way to achieve the same purpose without them.

    For instance, instead of aria-pressed with buttons, you can just use radio buttons and labels. And your can just put heading elements in your sections instead of naming them with aria properties.

    source