Comments: This article lists some new global attributes in HTML 5, which are very useful. For more information about html5, see
NEW: the NEW Global attribute in HTML 5.
Attribute |
Description |
Accesskey |
Specifies the keyboard shortcut for the access element |
Class |
Specifies the Class Name of the element (used to specify the class in the style sheet ). |
Contenteditable |
Specifies whether users are allowed to edit content. |
Contextmenu |
Specifies the context menu of an element. |
Dir |
Specifies the text direction of the content in the element. |
Draggable |
Specifies whether to allow users to drag elements. |
Dropzone |
Specifies what happens when the dragged Project/data is dragged to an element. |
Hidden |
This element is not required. Hidden elements are not displayed. |
Id |
The unique ID of the specified element. |
Lang |
Specifies the language code of the content in the element. |
Spellcheck |
Specifies whether spelling or syntax checks must be performed on elements. |
Style |
Specifies the row style of the element. |
Tabindex |
Specifies the order of the element's tab key control. |
Title |
Specifies additional information about the element. |