Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML Global Attributes

HTML Global Attributes


New : New attributes in HTML5.

property Description
accesskey Sets a keyboard shortcut to access an element.
class Specifies the class name (classname) of an element
contenteditableNew Specifies whether the content of an element is editable.
contextmenuNew Specifies a context menu for an element. The context menu appears when the user right-clicks the element
data-*New Used to store custom data on the page
dir Sets the text direction of the content in an element.
draggableNew Specifies whether an element can be dragged
dropzoneNew Specifies whether data can be copied, moved, linked, or deleted
hiddenNew The hidden attribute specifies that an element is hidden.
id Specifies the unique id of an element
lang Sets the language code of the content in an element.
spellcheckNew Checks whether the content of an element is spelled correctly
style Specifies the inline style of an element
tabindex Sets the tab order of an element.
title Specifies extra information about an element (shown in a tooltip)
translateNew Specifies whether the value of an element should be translated when the page is loaded