TABLE A.1 HTML Global Attributes
The following attributes may be used with most HTML elements
Global Attribute Description
accesskey For adding a keyboard shortcut to an element
aria-* For associating accessibility attribute values specified by WAI-ARIA class For identifying a set of elements in order to apply styles to them contenteditable For making the content of an element editable
contextmenu For identifying a contextual menu for an element (the value must be the same as a menu element’s id attribute)
data-* For storing custom data that is private to the page or application
dir For specifying the element’s text direction
draggable For making an element draggable
dropzone For identifying an element as a place where draggable elements can be dropped
event For associating an element with a script (event is a placeholder for the actual event name) hidden For indicating that an element is not yet relevant or is no longer relevant
id For identifying a particular element so that it can be linked to, styled, or scripted with JavaScript lang For specifying the language an element is written in
role For providing additional information to assistive devices about the role of an element as defined by WAI-ARIA
spellcheck For indicating whether the content of an element should have its spelling and grammar checked style For adding local style sheet information
tabindex For defining the order in which the Tab key takes the visitor through elements
title For labeling elements with tool tips
TABLE A.2 HTML Elements and Attributes
Element/Attribute(s) Description
a For creating links and anchors
href For specifying the URL of a page or the name of an anchor that a link goes to
hreflang For specifying the language of the linked resource
media For describing the media for which the target document was defined
rel For identifying the nature of the link