<DIR>...</DIR>
Create a directory list. Items in the list are defined with the
LI element.
This list is intended to be shown as a multicolumn directory list, but most
browsers render a DIR list the same as an
unordered list (UL).
Note: This element is deprecated, and this DTD fragment is taken from the
Transitional DTD.
<!ELEMENT DIR - - (LI)+ -(%block;) -- directory list, menu list -->
<!ATTLIST DIR
%attrs; -- %coreattrs, %i18n, %events --
compact (compact) #IMPLIED
>
from the HTML 4.0 DTD,
"Copyright ©
World Wide Web Consortium,
(Massachusetts Institute of Technology,
Institut National de Recherche en Informatique et en Automatique,
Keio University).
All Rights Reserved."
Core attributes:
class
id
style
title
Internationalization attributes:
dir
lang
Events:
onclick
ondblclick
onmousedown
onmouseup
onmouseover
onmousemove
onmouseout
onkeypress
onkeydown
onkeyup
COMPACT
Show the list in a compact way, taking up less space. How this is done, in not
defined in HTML 4.0.
TYPE
The default directory list has a default progression of bullet types that
changes as you move through indented levels. From a solid disc, to a circle to
a square.
You can change this default using the TYPE attribute. Allowed values for TYPE,
are CIRCLE, DISC, and SQUARE.
 |
A simple directory list :
<DIR>
<LI>The first item of the list.
<LI>The second item of the list.
</DIR>
|
|
 |
A simple directory list :
The first item of the list.
The second item of the list.
|
|
 |
Nested directory lists with assigned types :
<DIR type="square">
<LI>The first item of the list.
<LI>The second item of the list.
<DIR type="circle" compact>
<LI>The first item of the nested list.
<LI>The second item of the nested list.
</DIR>
</DIR>
|
|
 |
Nested directory lists with assigned types :
The first item of the list.
The second item of the list.
The first item of the nested list.
The second item of the nested list.
|