Common HTML Attributes

In the HTML specifications for Navigator, Internet Explorer, and HTML 4.0, several attributes are shared across a vast majority of HTML elements. Rather than repeat the descriptions of these attributes ad nauseam in the reference listings, I am listing their details here only once. Throughout the rest of the chapter, the attribute list for each element points to these common attributes when the attribute name is in italic. When you see an attribute listed in italic, it means that you should look to this section for specific details about the attribute. If you recognize a term from the list of attributes-in-common, but it is not shown in italic, that means that there is some element-specific information about the attribute, so the description is provided with the element. Here is a list of the common attributes:

Attributes

CLASS

ID

LANGUAGE

STYLE

TITLE

DIR

LANG

   

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.