From http://www.w3schools.com (Copyright Refsnes Data)

HTML 5 <dir> tag


Definition and Usage

The <dir> tag defines a directory list.


Differences Between HTML 4.01 and HTML 5

The dir element was deprecated in HTML 4.01.

The dir element is not supported in HTML 5.


Tips and Notes

Tip: Use CSS styles to define the type of list!


Example

Source Output
<dir>
<li>html 4.01</li>
<li>html 5</li>
</dir>
  • html 4.01
  • html 5


  • Attributes

    Attribute Value Description 4 5
    compact compact_rendering Not supported. Use styles instead 4 5

    From http://www.w3schools.com (Copyright Refsnes Data)