<

HTML <dir> Tag

The <dir> tag is not supported in HTML5. Use <ul> or CSS instead.The <dir> tag is used to list directory titles.

Attributes



Attribute Value Description
compact compact Not supported in HTML5.
Specifies that the list should render smaller than normal


Example




<!DOCTYPE html>
<html>
<body>

<dir>
  <li>html</li>
  <li>xhtml</li>
  <li>css</li>
</dir>


</body>
</html>
















© copyright 2017-2022 Completedone pvt ltd.