Atributos Globais HTML

Atributos Globais HTML

Global attributes are attributes that can be used with all HTML elements.

Atributos Globais HTML

Attribute Description
accesskey Define the shortcut key to activate the element.
class Define one or more class names of the element (refer to the class in the style sheet).
contenteditable Define whether the content of the element is editable.
contextmenu Define the context menu of the element. The context menu is displayed when the user clicks the element.
data-* Used to store private custom data for the page or application.
dir Define the text direction of the content within the element.
draggable Define whether the element is draggable.
dropzone Define whether to copy, move, or link when dragging the dragged data.
enterkeyhint Define the text of the enter key on the virtual keyboard.
hidden Define that the element is no longer or is no longer relevant.
id Define the unique id of the element.
inert Define that the browser should ignore this part.
inputmode Define the mode of the virtual keyboard.
lang Define the language of the element's content.
popover Define the popover element.
spellcheck Define whether the element should perform spelling and grammar checks.
style Define the inline CSS style of the element.
tabindex Define a ordem do elemento no tabulação do teclado.
title Define informações adicionais sobre o elemento.
translate Define se o conteúdo do elemento deve ser traduzido.