Common Attributes and Events
A number of attributes are shared by nearly all elements. To save space, they have been abbreviated in this reference as they are in the Recommendations. This section serves as a reference for Alphabetical List of Elements and explains each attribute’s shorthand.
In HTML 4.01/XHTML 1.0, the attributes and events are divided into groups called Core, Internationalization, Focus, and Events. In HTML5, there is one set of Global Attributes that applies to all HTML elements.
HTML 4.01 and XHTML 1.0
Core
When Core is listed under Attributes, it refers to the set of core attributes that may be applied to the majority of elements (as noted in each element listing):
idAssigns a unique identifying name to the element
classAssigns one or more classification names to the element
styleAssociates style information with an element
titleProvides a title or advisory information about the element
Internationalization
When Internationalization appears in the attribute list, it means the element accepts the set of attributes used to specify language and reading direction:
dirSpecifies the direction of the element (left to right or right to left).
langSpecifies the language for the element by its language code.
xml:langXHTML only. Specifies language for elements in XHTML documents.
Focus
Focus refers to the state of being highlighted and ready for user input, such as for a link or form element. When Focus is listed, it indicates that the following attributes and events related to bringing ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access