HTML dir tag

Not Supported in HTML5.

The <dir> tag was used in HTML 4 to list directory titles.

What to Use Instead?

Example

Use <ul> to create a directory list:

<ul>
<li>html</li>
<li>xhtml</li>
<li>css</li>
</ul> 

Example

Reduce line-height in a list (with CSS):

<ul style="line-height:80%">
<li>html</li>
<li>xhtml</li>
<li>css</li>
</ul> 
  • html
  • xhtml
  • css

Comments