Deprecated in HTML5. Do not use.

<dir> HTML Tag

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more

Sharing is caring!

Element of
Lists Bring Order To Web Pages: Here’s The HTML Code To Create Them
What does <dir> HTML Tag do?
The <dir> element, deprecated beginning in HTML 4.01, was used to create a list of file names or the contents of a directory. An unordered list, created with the <ul> element, is the appropriate modern replacement for the <dir> element.
Display
block
Adam is a technical writer who specializes in developer documentation and tutorials.