deleted Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
The HTML directory element (<dir>) represents a directory, namely a collection of filenames.
<ul> instead.This element implements the HTMLDirectoryElement interface.
Like all other HTML elements, this element supports the global attributes.
compact
<dir> element should be styled using CSS. To give a similar effect than the compact attribute, the CSS property line-height can be used with a value of 80%.<ol>, <ul>, <li>, <menu>;<dir> element: list-style property, useful to choose the way the ordinal is displayed.line-height property, useful to simulate the deprecated compact attribute.margin property, useful to control the indent of the list.
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dir