HTML5 Standard Attributes

« Previous Next Reference »

The attributes listed below are supported by all HTML 5 tags, with a few exceptions.


HTML5 Standard Attributes

New : New standard attributes in HTML5.

Attribute Value Description
accesskey character Specifies a keyboard shortcut to access an element
class classname Specifies a classname for an element (used to specify a class in a style sheet)
contenteditableNew true
false
Specifies if the user is allowed to edit the content or not
contextmenuNew menu_id Specifies the context menu for an element
dir ltr
rtl
Specifies the text direction for the content in an element
draggableNew true
false
auto
Specifies whether or not a user is allowed to drag an element
dropzoneNew copy
move
link
Specifies what happens when dragged items/data is dropped in the element
hiddenNew hidden Specifies that the element is not relevant. Hidden elements are not displayed
id id Specifies a unique id for an element
lang language_code Specifies a language code for the content in an element. Language code reference
spellcheckNew true
false
Specifies if the element must have its spelling and grammar checked
style style_definition Specifies an inline style for an element
tabindex number Specifies the tab order of an element
title text Specifies extra information about an element

« Previous Next Reference »