This page is Not Ready

Notice: The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

dir

Summary

The dir element <dir> is used to list directory titles.

The dir element is deprecated in HTML 4.01, and obsolete in HTML5. Use CSS and the ul element instead.

Overview Table

DOM Interface
HTMLElement

Examples

This example uses the dir element to create a directory list.

<DIR>
<LI>Art
<LI>History
<LI>Literature
<LI>Sports
<LI>Entertainment
<LI>Science
</DIR>

Notes

Remarks

Standards information

See also

Other articles

Attributions