| Version | W3C//DTD HTML 3.2 Final//EN
|
|---|
| Element | DIR |
|---|
| Purpose | directory list |
|---|
| Description | This element encloses a directory list. The intent is that DIR creates lists of short items. Browsers would render this list in a series of columns. The appearance would therefore be more compact than a list made using LI.
However, the DIR element was never rendered differently in many browsers and was rarely used.
Use UL instead.
|
|---|
| Start tag | Required <DIR>
|
|---|
| Attributes | | Name | Type | Default | Comment |
|---|
| compact | ( compact ) | #IMPLIED | more compact style
|
|
|---|
| Content | ( LI )+ -( P | UL | OL | DIR | MENU | PRE | DL | DIV | CENTER | BLOCKQUOTE | FORM | ISINDEX | HR | TABLE )
|
|---|
| End tag | Required </DIR>
|
|---|
| Referenced in | BLOCKQUOTE BODY CENTER DD DIR DIV FORM LI MENU TD TH
|
|---|
| Example | | Source | Appearance |
|---|
In the building are:
<DIR>
<LI>Brown's Bagel Shop
<LI>Kyle's Copy Shop
<LI>Styles by Deni
<LI>Kim's Tax Service
<LI>The Roof Lounge
</DIR>
| In the building are:
Brown's Bagel Shop
Kyle's Copy Shop
Styles by Deni
Kim's Tax Service
The Roof Lounge
|
|
|---|