XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / dir

(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

   

dir

HTML 4.01

<dir> ... </dir>

Creates a directory list from list items (li). Directory lists were originally intended to display lists of short file names. These lists are now deprecated, and unordered lists (ul) are recommended instead.

Notes

Deprecated in HTML 4.01/XHTML 1.0. Not available in HTML 5.

Start/end tag

Required/required

Attributes

Core, internationalization, events, global HTML 5 attributes

  • compact (compact="compact" in XHTML)

    Deprecated. Not in HTML 5. Makes the list as compact as possible. Few browsers support this attribute.

Example

<dir>
  <li>index.html</li>
  <li>about.html</li>
  <li>news.html</li>
</dir>

 

> back to the alphabetical list of elements

   

 

 

 

back to top