Global HTML Attributes

Alex -

Global HTML Attributes

accesskey list of key labels A key label or list of key labels with which to associate the element; each key label represents a keyboard shortcut which UAs can use to activate the element or give focus to the element.
class set of space-separated tokens A name of a classification, or list of names of classifications, to which the element belongs.
contenteditable "true" or "false" or "" (empty string) Specifies whether the contents of the element are editable.
contextmenu ID reference The value of the id attribute on the menu with which to associate the element as a context menu.
dir "ltr" or "rtl" or "auto" Specifies the element’s text directionality.
draggable "true" or "false" Specifies whether the element is draggable.
dropzone dropzone value Specifies what types of content can be dropped on the element, and instructs the UA about which actions to take with content when it is dropped on the element.
hidden "hidden" or "" (empty string) Specifies that the element represents an element that is not yet, or is no longer, relevant.
id ID A unique identifier for the element. There must not be multiple elements in a document that have the same id value.
lang language tag Specifies the primary language for the contents of the element and for any of the element’s attributes that contain text.
spellcheck "true" or "false" or "" (empty string) Specifies whether the element represents an element whose contents are subject to spell checking and grammar checking.
style string Specifies zero or more CSS declarations that apply to the element.
tabindex integer Specifies whether the element represents an element that is is focusable (that is, an element which is part of the sequence of focusable elements in the document), and the relative order of the element in the sequence of focusable elements in the document.
title any value Advisory information associated with the element.
translate "yes" or "no" Specifies whether an element’s attribute values and contents of its children are to be translated when the page is localized, or whether to leave them unchanged.
NameValueDescription

More info here.

Have more questions? Submit a request

Comments

Powered by Zendesk