Common attributes

Some useful attributes have now been added to almost every HTML element. The most ubiquitous are four core attributes, Style, Class, Title and Id. There are few elements that do not have them, the exceptions being structural tags (Html, Head, Title), background scripts (Script, Style and Area), applet tags (Applet and Param) and meta-data (Base, Basefont and Meta). In addition, many elements have new language attributes (Lang and Dir), and many others have attributes that allow scripts to be activated when the user interacts with the element in some way (Onclick, Ondblclick, Onmousedown, Onmouseup, Onmouseover, Onmouseout, Onkeypress, Onkeydown and Onkeyup).

In-line styles

The Style attribute allows CSS in-line styles to be ...

Get XSL companion, The 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.