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 document - class
classifies this element into one or more subtypes - dir
specifies the reading direction for text as left to right or right to left - lang
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 element - title
provides extra information about the element - xml:lang
specifies the language of the content inside this element in XHTML documents
Previous: Common Attributes
Next: id
User-contributed notes
There are no comments yet.
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.
