Categories
HTML iMovie Web development

HTML Global Attributes

Learn HTML Global Attributes.


Almost all attributes are defined to be used with particular elements. However, some of them are available for use on all HTML elements. These attributes are called Global Attributes.

accesskeydefines a shortcut key to activate/focus an element.
classdefines one or more class names for an element (makes a reference to a class in a style sheet).
contenteditabledefines whether the content of an element is editable or not.
data-*allows embedding custom data attributes on all HTML elements.
dirdefines the text direction of the element’s content.
draggabledefines whether an element is draggable or not.
hiddendefines that an element is not yet, or is no longer, relevant.
iddefines a unique id for an HTML element.
langdefines the language of the element’s content.
spellcheckdefines whether the element is to have its spelling and grammar checked or not.
styledefines a style for an element.
tabindexdefines the tab order of an element.
titledefines extra information about an element.
translatedefines whether the content of an element should be translated.

Read also:

HTML Attributes

HTML Tags

HTML Form Elements