1. Home
  2. Computing & Technology
  3. Web Design / HTML

<dir></dir>

By Jennifer Kyrnin, About.com

<dir> Description:

The <dir> element defines a directory list. This element is deprecated in HTML 4.0 and XHTML 1.0.

<dir> Web Browser Support:

<dir> Attributes:

<dir> End Tag:

</dir> REQUIRED

Contents:

List elements. The following tag is valid within the <dir> tag:
li

<dir> Valid Context:

The <dir> tag is valid within the following tags:
blockquote, body, button, center, dd, div, fieldset, form, iframe, li, noframes, noscript, object, td, th

<dir> Usage:

  • a directory listing
    <dir>
    <li>bltags-basic-tags.htm</li>
    <li>bltags-block-tags.htm</li>
    <li>bltags-content-tags.htm</li>
    <li>bltags-list-tags.htm</li>
    <li>bltags-text-tags.htm</li>
    </dir>

<dir> Special Notes:

  • This element has been deprecated in XHTML 1.0 and HTML 4.0 in favor of unordered lists.

More <dir> Information:

Return to XHTML Element (HTML Tags) Library

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. HTML Tags
  7. The dir Element - directory list - Deprecated in XHTML 1.0 HTML 4.0

©2008 About.com, a part of The New York Times Company.

All rights reserved.