The Web Design Group

dir - Directory List

Syntax <dir>...</dir>
Attribute Specifications
Contents One or more li elements that cannot contain block-level elements
Contained in applet, blockquote, body, button, center, dd, del, div, fieldset, form, iframe, ins, li, map, noframes, noscript, object, td, th

The dir element defines a directory list. The element contains one or more li elements that define the actual items of the list. The li elements must not contain block-level elements, which prevents dirs from being nested.

The compact attribute suggests that visual browsers render the list compactly, perhaps with reduced spacing between items. This attribute is not well supported among browsers.

dir is deprecated in XHTML 1.0 in favor of ul.

More Information