Directory List Element
<dir>
Introductory Text
The dir element represented a Directory List containing block (that was used in conjunction with li elements).
[Note: This structural element has been deprecated in HTML 4.01 and obsoleted in HTML 5.]
- Start tag:
<dir>- End tag:
</dir>
Use Examples
- Example [HTML]:
-
- This is a Directory List Item
- This is a Directory List Item
- This is a Directory List Item
- Code [HTML]:
-
<dir> <li>This is a Directory List Item</li> <li>This is a Directory List Item</li> <li>This is a Directory List Item</li> </dir> -
[Historical Note: “These elements have been part of HTML from the early days. They are intended for unordered lists similar to
ULelements. User agents are recommended to renderDIRelements as multicolumn directory lists, andMENUelements as single column menu lists. In practice, Mosaic and most other user agents have ignored this advice and instead renderDIRandMENUin an identical way toULelements.” —as stated in HTML 3.2 Reference Specification]
Content Model/Assigned Attributes
- Element-Type:
- List
- Attributes:
</dir>
