Javatpoint Logo
Javatpoint Logo

HTML <dir> tag (Not Supported in HTML5)

HTML <dir> tag was used as a container for the list of files/folders or content of the directory. The <dir> element is used with the <li> tags, and list of directories renders in bullets by default.

Note: Do not use HTML <dir> tag as it is deprecated now and not supported in HTML5. You can use <ul> tag and CSS property instead.

Syntax

Following are some specifications about the HTML <dir> tag

Display Block
Start tag/End tag Both Start and End tag
Usage HTML lists

Example 1

Test it Now

Output:

HTML dir tag

Attribute

Tag-specific Attribute

Attribute Value Description
compact compact It specifies that list should display smaller than normal. (Not supported in HTML5)

Global Attribute

HTML <dir> tag supports the Global attributes.

Event Attribute

HTML <dir> tag supports the Event attributes.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<dir>YesYesYesYesYes
Next TopicHTML div Tag





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA