The attributes below are supported by the majority of HTML5 elements.

Attribute Value Description
accesskey character Specifies a keyboard shortcut to access an element.
class classname Specifies a classname for an element.
contenteditable true
Specifies if the user is allowed to edit the content or not.
contextmenu menu_id Specifies the context menu for an element.
data-* value Author defined attributes. Authors of an HTML document can define their own attributes. Must start with "data-".
dir ltr
Specifies the text direction for the content in an element.
draggable true
Specifies whether or not a user is allowed to drag an element.
hidden hidden Specifies that the element is not relevant. Hidden elements are not displayed.
id id Specifies a unique id for an element.
item empty
Used to group elements.
itemprop url
group value
Used to group items.
lang language_code Specifies a language code for the content in an element.
spellcheck true
Specifies if the element must have its spelling or grammar checked.
style style_definition Specifies an inline style for an element.
subject id Specifies the element's corresponding item.
tabindex number Specifies the tab order of an element.
title text Specifies extra information about an element.

See Also

Community content is available under CC-BY-SA unless otherwise noted.