< All the HTML Tags >

<dir></dir>

Video Coming Soon...

  • dir

    Tag Type

    block

    Tag Category

    lists

    Defines a directory list

    Viewed

    1

    Examples

    1

Definition:

The HTML <dir> tag was used to create a directory list of items, but it is now obsolete.

Instead, developers are encouraged to use the <ul> (unordered list) or <ol> (ordered list) tags for creating lists, as they provide greater flexibility and semantic meaning in modern HTML standards.

Attributes:

Deprecated in HTML5, compact, Global attributes (e.g., class, id, style)

Accessibility:

Coming Soon…

Default dir Example:

Using the <dir> tag to create a directory list.
<dir><li>Item 1</li><li>Item 2</li></dir>

Default dir Result:


Coming Soon…

Community Examples:

Coming Soon…
Coming Soon…