Atributos globales HTML5

martes, 24 de junio de 2014
Los Atributos HTML aportan elementos significado y contexto.
Los atributos globales que se indican abajo se pueden usar en cualquier elemento HTML.

HTML Atributos globales

New : Nuevos atributos globales en HTML5.

AttributeDescription
accesskeySpecifies a shortcut key to activate/focus an element
classSpecifies one or more classnames for an element (refers to a class in a style sheet)
contenteditableNewSpecifies whether the content of an element is editable or not
contextmenuNewSpecifies a context menu for an element. The context menu appears when a user right-clicks on the element
dirSpecifies the text direction for the content in an element
draggableNewSpecifies whether an element is draggable or not
dropzoneNewSpecifies whether the dragged data is copied, moved, or linked, when dropped
hiddenNewSpecifies that an element is not yet, or is no longer, relevant
idSpecifies a unique id for an element
langSpecifies the language of the element's content
spellcheckNewSpecifies whether the element is to have its spelling and grammar checked or not
styleSpecifies an inline CSS style for an element
tabindexSpecifies the tabbing order of an element
titleSpecifies extra information about an element