It is used to make a list of directory titles. It is not supported in HTML 5 <ul> or CSS are used instead of <dir> tag.
<dir> Lists... </dir>
Below example illustrates the <dir> tag in HTML:
Optional Attributes: This tag contains single attributes Compact which is optional. It is used to specify the list size render smaller than normal by reducing the space between list items. It is a boolean attribute.
Note: The compact attribute is not supported by any browser.
Supported Browsers: The browser supported by <dir> tag are listed below:
- Google Chrome
- Internet Explorer
- HTML Course | Structure of an HTML Document
- HTML | <html> xmlns Attribute
- HTML | DOM HTML Object
- HTML Course | Basics of HTML
- What is the difference between <html lang="en'> and <html lang="en-US'> ?
- HTML | <em> Tag
- PHP vs HTML
- HTML | <ol> Tag
- HTML | <map> Tag
- HTML | <xmp> tag
- HTML | <kbd> Tag
- HTML 5 | <bdi> Tag
- Div Tag | HTML
- HTML | <dfn> Tag
- HTML | col Tag
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.