HTML - <dir>
The HTML directory element (<dir>
) represents a directory, namely a collection of filenames.
Description
The HTML directory element (<dir>
) represents a directory, namely a collection of filenames.
See Also
- Other list-related HTML Elements:
<ol>
,<ul>
,<li>
,<menu>
; - CSS properties that may be specially useful to style the
<dir>
element:- The
list-style
property, useful to choose the way the ordinal is displayed. - CSS counters, useful to handle complex nested lists.
- The
line-height
property, useful to simulate the deprecatedcompact
attribute. - The
margin
property, useful to control the indent of the list.
- The
This element implements the HTMLDirectoryElement
interface.
License
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/html/element/dir