Legacy & Obsolete Elements
<dir>
Obsolete or historical HTML; do not use in new documents. Represented a directory list. Use ul with li children for an unordered collection. Do not confuse this element with the current global dir attribute. The syntax shows old markup for recognition only. The runnable example demonstrates a modern migration pattern, not the obsolete behavior.
Formal Syntax & Structure
html syntaxhtml
<dir> <li>Documents</li></dir>Working Example
Example Snippethtml
<ul> <li>Documents</li> <li>Photos</li></ul>