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="border:solid;" aria-press="true"> Italics </div>
+
<div style="width:2em; border:solid;" aria-press="true"> Italics </div>
 
<p>Anchor element with aria-pressed</p>
 
<p>Anchor element with aria-pressed</p>
 
<a style="border:solid;" href="#"> Underline </a>
 
<a style="border:solid;" href="#"> Underline </a>

Revision as of 14:34, 4 April 2014

With button element

Div element with aria-pressed

Italics

Anchor element with aria-pressed

Underline

Dynamic example