Appendix A. XHTML REFERENCE

HTML and XHTML Tag Reference

The following is a complete list of the elements supported in HTML 4.01 and XHTML 1.0, including suggested usage and supported attributes. Unless otherwise noted, the elements and attributes are supported by all "flavors" of both HTML 4.01 and XHTML 1.0.

All XHTML elements accept the following common attributes, except as noted in the text. They are always optional:

COMMON ATTRIBUTE

DESCRIPTION

class

A class selector for the element.

dir

Sets the direction of the element as either left to right or right to left.

id

A unique identifier for the element.

lang

Specifies the language of the element.

style

Applies an inline style to the element.

title

Sets a title for the element.

xml:lang

Specifies the language ...

Get HTML, XHTML, and CSS: Your visual blueprint™ for designing effective Web pages 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.