HTML <dir> Tag. Not Supported in HTML5.
Definition and Usage
The <dir> tag is not supported in HTML5. Use <ul> or CSS instead.
The <dir> tag is used to list directory titles.
Browser Support
Element | |||||
---|---|---|---|---|---|
<dir> | Yes | Yes | Yes | Yes | Yes |
Tips and Notes
Tip: Use CSS to style lists! In our CSS tutorial you can find more details about styling lists.
Differences Between HTML 4.01 and HTML5
The <dir> tag is not supported in HTML5.
Optional Attributes
Attribute | Value | Description |
---|---|---|
compact | compact | Not supported in HTML5. Specifies that the list should render smaller than normal |