A Directory List element can be used to present a list of items, which may be arranged in columns, typically 24 characters wide. Some browsers will attempt to optimise the column width as function of the widths of individual elements.

A directory list must begin with the <DIR> element which is immediately followed by a <LI> (list item) element:

E.g. :

<DIR>
<LI>A-H
<LI>I-M
<LI>M-R
<LI>S-Z
</DIR>

Would render as:

  • A-H
  • I-M
  • M-R
  • S-Z
  • <DIR> and <LI> can also take the CLASS, ID and STYLE attributes to allow style sheet definitions to be applied to it. For more details of these attributes, see the Style Sheets topic.


    <DL> List Elements Overview <MENU>