Difference between revisions of "ARIA Pressed State"

From Level Access Web Labs
Jump to navigation Jump to search
Line 3: Line 3:
 
<button aria-pressed="true"> Bold </button>
 
<button aria-pressed="true"> Bold </button>
 
<p>Div element with aria-pressed</p>
 
<p>Div element with aria-pressed</p>
<div style="width:3em; border:solid;" aria-press="true"> Italics </div>
+
<div style="width:3em; border:solid;" aria-press="true" tabindex="0"> Italics </div>
 
<p>Anchor element with aria-pressed</p>
 
<p>Anchor element with aria-pressed</p>
 
<a style="border:solid;" href="#" aria-pressed="true"> Underline </a>
 
<a style="border:solid;" href="#" aria-pressed="true"> Underline </a>

Revision as of 21:20, 8 July 2014

With button element

Div element with aria-pressed

Italics

Anchor element with aria-pressed

Underline

Dynamic example