HTML5 Standard Attributes

« Previous Chapter 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)
contenteditable true
false
Specifies if the user is allowed to edit the content or not
contextmenu menu_id Specifies the context menu for an element
dir ltr
rtl
Specifies the text direction for the content in an element
draggable true
false
auto
Specifies whether or not a user is allowed to drag an element
dropzone copy
move
link
Specifies what happens when dragged items/data is dropped in the element
hidden 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
spellcheck 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 Chapter Next Reference »

Have Any Suggestion? We Are Waiting To Hear from YOU!

Your Query was successfully sent!