XHTML Standard Attributes

HTML tags have attributes. The special attributes of each tag are listed under the description of each tag. The attributes listed here are the core attributes and language attributes (with some exceptions) that are universally applicable to each tag.

Core Attributes (Core Attributes)

The following tags do not provide the following attributes: base, head, html, meta, param, script, style, and the title element.

Attribute Value Description
class class_rule or style_rule the class (class) of an element
id id_name a specific id of an element
style style definition inline style definition
title Tooltip Text Text Displayed in the Tooltip

Language Attributes (Language Attributes)

The following tags do not provide the following attributes: base, br, frame, frameset, hr, iframe, param, and script elements.

Attribute Value Description
dir ltr | rtl Set Text Direction
lang Language Code Set Language Code

Keyboard Attributes (Keyboard Attributes)

Attribute Value Description
accesskey Character Set Keyboard Shortcut for Accessing an Element
tabindex Number Set Tab Order for an Element