WAI-ARIA - Landmark
I landmark
forniscono un modo molto potente per identificare l’organizzazione e la struttura di una pagina web.
Elementi di sezione HTML
E’ importante capire che molti elementi dis ezione HTML(main
, nav
, aside
,…) definiscono di default landmark ARIA. Se si utilizzano quidni questi tag in modo inappropriato, il lettore vocale potrebbe non comprendere correttamente il contenuto della pagina ed essere meno efficiente nell’interagire con gli elementi.
HTML Element | Default Landmark Role |
---|---|
aside | complementary |
footer | contentinfo when in context of the body element. The footer element is not a contentinfo landmark when it is a descendant of the following HTML sectioning elements:
|
form | form when it has an accessible name using aria-labelledby , aria-label or title attributes |
header | banner when in context of the body element. The header element is not a banner landmark when it is a descendant of the following HTML sectioning elements:
|
main | main |
nav | navigation |
section | region when it has an accessible name using aria-labelledby , aria-label or title attribute |