HTML Global Attributes

Attribute Value Description
accesskey shortcut key It Specifies a keyboard shortcut to activate or focus the element.
class classname It Assigns a class name to an element.
contenteditable true or false It Indicates whether the content of an element is editable by the user or not.
contextmenu menu-id It Specifies a context menu for an element.
data-* data It Specified on any element, to store custom data specific to the webpage.
dir ltr and rtl It Specifies the base direction of directionality of the element's text.
xml:lang language-code It Specifies the primary language for the element's text content in only xml documents.
translate yes or no It Specifies whether the text content of an HTML element should be translated or not.

Share On


Welcome HTML Getting Started HTML Elements HTML Attributes HTML Headings HTML Paragraphs HTML Links HTML Styles HTML Text Formatting HTML Tables HTML Images HTML Forms HTML Lists HTML Iframes HTML Comments HTML CSS HTML Colors HTML Classes HTML Id HTML javascript HTML Filepaths

HTML Advanced

HTML Doctypes HTML Validation HTML Validation HTML URL HTML URL Encode HTML URL Entities HTML Layout HTML Head HTML Meta HTML Scripts HTML Global Attributes HTML Event Attributes HTML Tags

HTML Media

HTML Media HTML Audio HTML Video HTML Plug-ins HTML Youtube

HTML Graphics