HTML Global Attribute








Attribute Description HTML5
accesskey Set a shortcut key to focus an element No
class Set one class names for an element for styling No
contenteditable Mark element content as editable Yes
contextmenu Install a context menu for an element during right-clicking on the element Yes
data-* Create custom data attribute Yes
dir Set the text direction for an element No
draggable Mark an element as draggable Yes
dropzone Set whether the dragged data is copied, moved, or linked, when dropped Yes
hidden Hide an element Yes
id Add a unique id for an element No
lang Set the language of the element's text No
spellcheck Do the spell check for the element Yes
style Add an inline CSS style for an element No
tabindex Set the tabbing order of an element No
title Set tooltip information for an element No
translate Mark to translate element content Yes