Core Attributes

In addition to element-type-specific attributes (such as the cite attribute used for blockquotes), the following core attributes may also be applied across almost the entire range of HTML elements, with some exceptions where it is not relevant to the contents of that element. For example the title attribute may be used on all elements contained in the body of a document (and can be applied to the body element itself) but is not relevant to the majority of elements found inside the head of the document, e.g. base, script and (perhaps not surprisingly) the title elements. Similarly, dir is a core attribute used for specifying the reading direction of text and is therefore not valid for elements such as applet, br, or param.

In this Section

User-contributed notes

Related Products