Techniques |
- Use the
aria-labelledby attribute to provide a unique accessible name by referencing the id of a heading or other element on the page that describes the content of the landmark.
- Use the
aria-label attribute to provide a unique accessible name that describes the content of the landmark.
- The
title attribute may be used to provide a unique accessible name that describes the content of the landmark. Note, however, that many browsers will also generate a tooltip from the title attribute value.
- While ARIA landmarks may be defined using the
role attribute, some HTML5 sectioning elements have default landmark roles (e.g., main , nav , aside , and in some situations, header and footer ). Thus when multiple nav elements, for example, are used on a page, define a unique accessible name for each of them.
|