tadam logo

HTML Attributes

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

Core Attributes

Not valid in base, head, html, meta, param, script, style, and titleelements.

AttributeValueDescription
classclassnameSpecifies a classname for an element
ididSpecifies a unique id for an element
stylestyle_definitionSpecifies an inline style for an element
titletext Specifies extra information about an element

Language Attributes

Not valid in base, br, frame, frameset, hr, iframe, param, scriptelements.

AttributeValueDescription
dirltr
rtl
Specifies the text direction for the content in an element
langlanguage_codeSpecifies a language code for the content in an element.Language code reference
xml:langlanguage_codeSpecifies a language code for the content in an element, in XHTML documents.Language code reference

Keyboard Attributes

AttributeValueDescription
accesskeycharacterSpecifies a keyboard shortcut to access an element
tabindexnumberSpecifies the tab order of an element
Was this information helpful?
   

Comments