Der Text sollte in einer bekannten Landmark-Region stehen.
Gutes Beispiel: Verwendung geeigneter Orientierungspunkte
In diesem Beispiel ist der gesamte Inhalt in einem Orientierungspunkt. Orientierungspunkte helfen, die verschiedenen
Inhaltstypen zu erkennen.
< div > This is the header. </ div >
< div > This is the navigation. </ div >
< div > This is the main content. </ div >
< div > This is a section. </ div >
< div > This is an article. </ div >
< div > This is an aside. </ div >
< div > This is the footer. </ div >
Schlechtes Beispiel: Keine Orientierungspunkte verwendet
Im Beispiel gibt es verschiedene Elemente, aber keines davon ist in Orientierungspunkten enthalten.
< div > This is the header. </ div >
< div > This is the navigation. </ div >
< div > This is the main content. </ div >
< div > This is a section. </ div >
< div > This is an article. </ div >
< div > This is an aside. </ div >
< div > This is the footer. </ div >
Mehrere Orientierungspunkte desselben Typs sollten verschiedene Labels haben.
Gutes Beispiel: Orientierungspunkte des gleichen Typs werden durch ein Aria-Label unterschieden
Jeder Abschnitt hat ein Aria-Label, das sagt, worum es in dem Abschnitt geht.
< nav aria-label = " Main Menu " >
< li >< a href = " index.html " > Home </ a ></ li >
< li >< a href = " products.html " > Products </ a ></ li >
< li >< a href = " services.html " > Services </ a ></ li >
< div > [...other content...] </ div >
< nav aria-label = " Products list " >
< li >< a href = " 1.html " > Product 1 </ a ></ li >
< li >< a href = " 2.html " > Product 2 </ a ></ li >
< li >< a href = " 3.html " > Product 3 </ a ></ li >
< li >< a href = " 4.html " > Product 4 </ a ></ li >
< div > [...other content...] </ div >
< nav aria-label = " Corporate and legal info " >
< li >< a href = " about.html " > About us </ a ></ li >
< li >< a href = " copyright.html " > Copyright notice </ a ></ li >
< li >< a href = " terms.html " > Terms of use </ a ></ li >
< li >< a href = " contact.html " > Contact us </ a ></ li >
Schlechtes Beispiel: Undifferenzierte Navigationspunkte
Jedes Navigationsziel enthält eine einzigartige Art von Navigationsliste, aber die Navigationsziele sind nicht durch eine
erkennbare Beschriftung gekennzeichnet.
< li >< a href = " index.html " > Home </ a ></ li >
< li >< a href = " products.html " > Products </ a ></ li >
< li >< a href = " services.html " > Services </ a ></ li >
< div > [...other content...] </ div >
< li >< a href = " 1.html " > Product 1 </ a ></ li >
< li >< a href = " 2.html " > Product 2 </ a ></ li >
< li >< a href = " 3.html " > Product 3 </ a ></ li >
< li >< a href = " 4.html " > Product 4 </ a ></ li >
< div > [...other content...] </ div >
< li >< a href = " about.html " > About us </ a ></ li >
< li >< a href = " copyright.html " > Copyright notice </ a ></ li >
< li >< a href = " terms.html " > Terms of use </ a ></ li >
< li >< a href = " contact.html " > Contact us </ a ></ li >
Eine Seite sollte nicht mehr als eine Instanz der folgenden Orientierungspunkte enthalten: banner, main und contentinfo.
Gutes Beispiel: Ein Beispiel pro Seite für bestimmte Arten von Orientierungspunkten
Jedes der ARIA-Landmarks “banner”, “main” und “contentinfo” wird genau einmal für den Hauptinhalt einer Seite verwendet.
Laut ARIA-Spezifikation darf jeder dieser drei Typen von Landmarks nur einmal pro Seite verwendet werden. Andere ARIA-Landmarks
können mehrfach verwendet werden. Die HTML5-Spezifikation erlaubt mehrere Instanzen der entsprechenden Landmarks:
<header>
, <main>
und <footer>
. Diese Regel gilt nur für ARIA-Landmarks. Deshalb ist es bei den meisten Webdesigns besser,
nur einen dieser Landmarks zu verwenden, egal ob mit ARIA oder HTML5.
< div role = " banner " > Visit Your Local Zoo! </ div >
< h1 > The Nature of the Zoo </ h1 >
< h2 > In the Zoo: From Wild to Tamed </ h2 >
< p > What you see in the zoo are examples of
inborn traits left undeveloped. [...] </ p >
< h2 > Feeding Frenzy: The Impact of Cohabitation </ h2 >
< p > Some animals naturally group together with their own kind,
but others stake solitary claim on their territory.
Even those that typically live harmoniously together can
have bouts with romantic rivals, which can potentially
escalate in the more confined setting of a zoo. [...] </ p >
< p > Brought to you by North American Zoo Partnership </ p >
Schlechtes Beispiel: Mehrere Instanzen von banner, main- oder contentinfo-Landmarks
In diesem Beispiel wurden zwei Arten von Orientierungspunkten mehrfach verwendet.
< header > Visit Your Local Zoo! </ header >
< h1 > The Nature of the Zoo </ h1 >
< h2 > In the Zoo: From Wild to Tamed </ h2 >
< p > What you see in the zoo are examples of
inborn traits left undeveloped. [...] </ p >
< p > [...information about this article...] </ p >
< h2 > Feeding Frenzy: The Impact of Cohabitation </ h2 >
< p > Some animals naturally group together with their own kind,
but others stake solitary claim on their territory.
Even those that typically live harmoniously together can
have bouts with romantic rivals, which can potentially
escalate in the more confined setting of a zoo. [...] </ p >
< p > [...information about this article...] </ p >
< p > Brought to you by North American Zoo Partnership </ p >
Es sollten nicht zu viele Orientierungspunkte verwendet werden.
Sie können so viele Orientierungspunkte auf einer Seite einbauen, wie Sie wollen. Blinde Benutzer sollen schnell zum richtigen
Orientierungspunkt finden und sich dort gut zurechtfinden. Deshalb sollten Sie nicht zu viele Orientierungspunkte verwenden. Sonst
müssen Benutzer von Bildschirmleseprogrammen zu viele Informationen durchsuchen, um das Gesuchte zu finden.
Nur weil Sie Links als Navigationsziel markieren können, müssen Sie das nicht tun. Wenn Sie nur ein bis drei Navigationsziele haben,
haben Benutzer keine Probleme. Bei 15 bis 20 Navigationspunkten kann es für Benutzer lange dauern, herauszufinden, welche
Informationen sie enthalten.