docs

Landmark API

The landmark API allows app developers to set different roles and labels that allow users to access the sections of the page using the screen reader functions/shortcuts.

Landmark roles (or “landmarks”) identify sections of a page. Landmarks help assistive technology users to orient themselves in a page and help them navigate easily to various sections within a page. Landmarks also provide an easy way for assistive technology users to skip over blocks of content that are repeated on multiple pages and inform them of the structure of a page. For instance, if there is a common navigation menu found on every page, landmarks can be used to skip over it and navigate from one section to another.


Landmark APIs in OpenUI5

Support for landmark roles is provided for:

Before seeing how a landmark is set for these controls, you must understand which landmark roles we can use.

The picture below is an example of different landmarks with assigned labels in a sap.uxap.ObjectPageLayout.

Supported landmark roles in OpenUI5 are stored in the sap.ui.core.AccessibleLandmarkRole enum. For more information, see the API Reference: sap.ui.core.AccessibleLandmarkRole.


sap.ui.core.AccessibleLandmarkRole

Here is a list of all of the values of the enum showing the part of the web page for which each of them is appropriate:

sap.ui.core.AccessibleLandmarkRole: