Keys with box
![](http://upload.wikimedia.org/wikipedia/en/thumb/1/16/Access_keys_shortcut_display_with_box.png/900px-Access_keys_shortcut_display_with_box.png)
a[accesskey]:before {
content: " " attr(accesskey) " ";
text-transform: uppercase;
white-space: pre;
border: thin solid;
font-family: sans-serif;
text-decoration: underline overline;
margin-right: 0.5ex;
}
Keys without box
![](http://upload.wikimedia.org/wikipedia/en/thumb/4/46/Access_keys_shortcut_display_with_no_box.png/900px-Access_keys_shortcut_display_with_no_box.png)
a[accesskey]:before {
content: " " attr(accesskey) " ";
text-transform: uppercase;
white-space: pre;
font-family: sans-serif;
margin-right: 0.5ex;
}