|
|
HTML <dir> tag
Syntax
<dir> - </dir>
Definition and Usage
The DIR element was designed to be used for creating multicolumn
directory lists. The element contains one or more LI
elements that define the actual items of the list. <dir> is deprecated in
HTML 4 favor of UL.
Optional Attributes
| Attribute |
Value |
Description |
| compact |
compact_rendering |
Deprecated. Use styles instead |
Standard Attributes
| id, class, title, style, dir, lang, xml:lang |
For a full description, go to Standard
Attributes.
Event Attributes
| onclick, ondblclick, onfocus, onblur, onmousedown,
onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown,
onkeyup |
For a full description, go to Event Attributes.
Example
| Source |
Output |
<dir>
<li>Book</li>
<li>CD</li>
<li>Video</li>
</dir>
|
Book
CD
Video
|
|
|