Fandom

HTML & CSS Wiki

Standard HTML5 Attributes

648pages on
this wiki
Add New Page
Comments0 Share

The attributes below are supported by the majority of HTML5 elements.

Attribute Value Description
accesskey character Specifies a keyboard shortcut to access an element.
class classname Specifies a classname for an element.
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.
data-yourvalue value Author defined attributes. Authors of an HTML document can define their own attributes. Must start with "data-".
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.
hidden hidden Specifies that the element is not relevant. Hidden elements are not displayed.
id id Specifies a unique id for an element.
item empty
url
Used to group elements.
itemprop url
group value
Used to group items.
lang language_code Specifies a language code for the content in an element.
spellcheck true
false
Specifies if the element must have its spelling or grammar checked.
style style_definition Specifies an inline style for an element.
subject id Specifies the element's corresponding item.
tabindex number Specifies the tab order of an element.
title text Specifies extra information about an element.

See AlsoEdit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.