Web

ARIA attributes

Në shqip: Atributet ARIA

ShpjegimiSQ

Atributet ARIA (aria-label, aria-hidden, role) u japin informacion shtesë lexuesve të ekranit që përdorin njerëzit me shikim të dobët — p.sh. çfarë bën një buton që ka vetëm ikonë. Rregulli i parë: përdor HTML semantike kur mundesh, ARIA vetëm kur s'mjafton.

EnglishEN

ARIA attributes (aria-label, aria-hidden, role) give extra information to the screen readers used by people with low vision — like what an icon-only button does. Rule one: use semantic HTML when you can, ARIA only when that's not enough.

Si ta mendosh

Si shkrimi Braille në butonat e ashensorit: s'e ndryshon ashensorin, por ia bën të qartë kujtdo që s'mund t'i shohë numrat.

Lexoje në anglisht

Like Braille on lift buttons: it doesn't change the lift, but makes it clear to anyone who can't see the numbers.

Shembull kodihtml

<button aria-label="Mbyll menynë">
  <i class="fa-solid fa-xmark" aria-hidden="true"></i>
</button>

Terma të lidhur