BEST SITE FOR WEB DEVELOPERS
HTML5. W3Schools in English. The complete tag guide

Ua Es De Fr

HTML Global Attributes


HTML Global Attributes

The global attributes are attributes that can be used with all HTML elements.

Attribute Description
accesskey Specify a shortcut key to activate/focus an element
class Specify one or more classnames for an element (refers to a class in a style sheet)
contenteditable Specify whether the content of an element is editable or not
data-* Used to store custom data private to the page or application
dir Specify the text direction for the content in an element
draggable Specify whether an element is draggable or not
hidden Specify that an element is not yet, or is no longer, relevant
id Specifies a unique id for an element
lang Specify the language of the element's content
spellcheck Specify whether the element is to have its spelling and grammar checked or not
style Specify an inline CSS style for an element
tabindex Specify the tabbing order of an element
title Specifies extra information about an element
translate Specify whether the content of an element should be translated or not