Techniques |
- Use the appropriate landmarks to identify the different regions of content on a web page.
- The most important landmark roles are
main and navigation , as nearly every page will include at least those regions.
- Other commonly used landmark roles include
banner , contentinfo , complementary and search .
- Use HTML sectioning elements that have a default ARIA landmark role:
main (main ), nav (navigation ), aside (complementary ) and in some situations header (banner ) and footer (contentinfo ). When using these elements, the role attribute should NOT be defined.
- A landmark can be created using a
div element with a role attribute and the appropriate ARIA landmark role value (e.g., role="main" ).
- The
search role is typically placed on a form element or a div that surrounds the search form.
|