Read This First
The code in this example is not intended for production environments. Before using it for any purpose, read this to understand why.
This is an illustrative example of one way of using ARIA that conforms with the ARIA specification.
- There may be support gaps in some browser and assistive technology combinations, especially for mobile/touch devices. Testing code based on this example with assistive technologies is essential before considering use in production systems.
- The ARIA and Assistive Technologies Project is developing measurements of assistive technology support for APG examples.
- Robust accessibility can be further optimized by choosing implementation patterns that maximize use of semantic HTML and heeding the warning that No ARIA is better than Bad ARIA.
About This Example
The examples below demonstrate three variations of the Link Pattern.
The link pattern is used when it is necessary for elements other than the HTML
a element to have link behaviors.
Note: Use the HTML
a element to create links whenever possible.
Browsers provide valuable functionality for native HTML links, e.g., open the target in a new window and copy the target URL to the system clipboard.
span element with text content.
img element with
:before content property on a
|Activates the link.
Role, Property, State, and Tabindex Attributes
|Includes the link element in the page tab sequence.
|Example 2: Defines the accessible name of the link.
|Example 3: Defines the accessible name of the link.
Assistive Technology Support
HTML Source Code