Common attributes

69pages on
this wiki
Add New Page
Talk0 Share

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

Core Attributes Edit

Invalid in base, head, html, meta, param, script, style, and title elements.

Attribute Value Description
class classname Specifies a classname for an element
id id Specifies a unique id for an element
style style_definition Specifies an inline style for an element
title text Specifies extra information about an element

Language Attributes Edit

Invalid in base, br, frame, frameset, hr, iframe, param, and script elements.

Attribute Value Description
dir ltr
Specifies the text direction for the content in an element
lang language_code Specifies a language code for the content in an element. Language code reference.
xml:lang language_code Specifies a language code for the content in an element, in XHTML documents. Language code reference.

Keyboard Attributes Edit

Attribute Value Description
accesskey character Specifies a keyboard shortcut to access an element
tabindex number Specifies the tab order of an element

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.