files/en-us/web/html/reference/elements/dir/index.md
{{Deprecated_Header}}
The <dir> HTML element is used as a container for a directory of files and/or folders, potentially with styles and icons applied by the {{Glossary("user agent")}}. Do not use this obsolete element; instead, you should use the {{HTMLElement("ul")}} element for lists, including lists of files.
[!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.
This element implements the {{domxref("HTMLDirectoryElement")}} interface.
Like all other HTML elements, this element supports the global attributes.
compact {{Deprecated_Inline}}
{{Specifications}}
{{Compat}}
<dir> element:
compact attribute.