Core Attributes
In addition to element-type-specific attributes (for example, the
cite attribute used for
blockquotes), the following core attributes may also be
applied to any element, whatever its type.
In this Section
id
a unique identifier for this element in the documentclass
classifies this element into one or more subtypesdir
specifies the reading direction for text as left to right or right to leftlang
specifies the language of this element’s content along with the language of any attribute content (for example, that inside thetitleattribute)style
specifies an inline style for this elementtitle
provides extra information about the elementxml:lang
specifies the language of the content inside this element in XHTML documents
User-contributed notes
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.