asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Elements > DIR Element

<dir> Element


Denotes a directory list.HTML 2, 3.2, 4, 4.01. Deprecated

HTML Syntax

NOTE: Both start and end tags are required.

Remarks

The <dir> element displays a list of items, usually a list of folders and files in a directory.

Like the <ul> element, dir is used with one or more <li> elements to denote the individual items in the list.

NOTE: This element has been deprecated in favor of CSS stylesheets.

Attributes

The <dir> element has no attribute of its own, but supports global attributes common to all HTML elements.

Example

The following example shows how the <dir> element may be used.

<dir>
   <li>Art
   <li>History
   <li>Literature
   <li>Sports
   <li>Entertainment
   <li>Science
</dir>
See Also

LI   MENU   OL   UL   Using Lists in HTML

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note