HTML dir Tag

Example

A directory list:
<dir>
  <li>html</li>
  <li>xhtml</li>
  <li>css</li>
</dir>

Teach Yourself  by BH24 HTML Editor Tool!

The <dir> tag is supported in all major browsers.

Definition and Usage

The <dir> tag is not supported in HTML5. Use CSS instead.
The <dir> element is deprecated in HTML 4.01.
The <dir> tag is used to list directory titles.

Tips and Notes

Tip: Use CSS to style lists! In our CSS tutorial you can find more details about styling lists.