VersionW3C//DTD HTML 3.2 Final//EN
ElementDIR
Purposedirectory list
DescriptionThis 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 tagRequired <DIR>
Attributes
NameTypeDefaultComment
compact( compact )#IMPLIEDmore compact style
Content( LI )+ -( P | UL | OL | DIR | MENU | PRE | DL | DIV | CENTER | BLOCKQUOTE | FORM | ISINDEX | HR | TABLE )
End tagRequired </DIR>
Referenced in BLOCKQUOTE BODY CENTER DD DIR DIV FORM LI MENU TD TH
Example
SourceAppearance
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
  • search Search · star Market
    2023-06-19 · John December · Terms © johndecember.com