HTML <dir> (Directory List) Tag
Deprecated: Not Supported in HTML5.
Example
<dir>
<li>One</li>
<li>Two</li>
<li>Three</li>
</dir>
Meaning
The <dir> element encloses a list of brief, unordered items, such as might occur in a menu or directory.
It is deprecated or obsolete under most specifications.
Warning: Do not use this element. Though present in early HTML specifications, it has been deprecated in HTML 4, and has since been removed entirely. No major browsers support this element.
Version: HTML 2, 3.2, 4, 4.01
Standard Syntax
<dir>
<li>...</li>
</dir>
Browser Support
Status
Attributes
Attribute | Value | Description |
---|---|---|
compact | compact | Specifies that the list should be rendered in a compact style. |
Global Attributes
<dir> element also supports the Global Attributes in HTML.
Event Attributes
<dir> element also supports the Event Attributes in HTML.
By Default CSS Value(s)
Most of the browsers will display the <dir> element with the following by default value(s)
dir {
display: block;
list-style-type: decimal;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
padding-left: 40px;
}