Version-//W3C//DTD HTML 4.01 Transitional//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
class CDATA #IMPLIEDspace-separated list of classes
compact( compact )#IMPLIEDreduced interitem spacing
dir( ltr | rtl )#IMPLIEDdirection for weak/neutral text
idID#IMPLIEDdocument-wide unique id
lang NAME #IMPLIEDlanguage code as RFC1766
onclick CDATA #IMPLIEDscript expression; a pointer button was clicked
ondblclick CDATA #IMPLIEDscript expression; a pointer button was double clicked
onkeydown CDATA #IMPLIEDscript expression; a key was pressed down
onkeypress CDATA #IMPLIEDscript expression; a key was pressed and released
onkeyup CDATA #IMPLIEDscript expression; a key was released
onmousedown CDATA #IMPLIEDscript expression; a pointer button was pressed down
onmousemove CDATA #IMPLIEDscript expression; a pointer was moved within
onmouseout CDATA #IMPLIEDscript expression; a pointer was moved away
onmouseover CDATA #IMPLIEDscript expression; a pointer was moved onto
onmouseup CDATA #IMPLIEDscript expression; a pointer button was released
style CDATA #IMPLIEDstyle sheet data; associated style info
title CDATA #IMPLIEDtext; advisory title
Content( LI )+ -( P | H1 | H2 | H3 | H4 | H5 | H6 | UL | OL | DIR | MENU | PRE | DL | DIV | CENTER | NOSCRIPT | BLOCKQUOTE | FORM | ISINDEX | HR | TABLE | FIELDSET | ADDRESS )
End tagRequired </DIR>
Referenced in APPLET BLOCKQUOTE BODY BUTTON CENTER DD DEL DIR DIV FIELDSET FORM INS LI MAP MENU NOSCRIPT OBJECT 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