HTML <dir> tag

HTML <dir> tag : Definition

The HTML <dir> tag do not Not Support in HTML5.

• The HTML <dir> tag stands for Directory tag.

• This tag was used in HTML4 to list directory titles.



<dir> tag example :

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Example of HTML dir tag</title>
</head>
<body>
    <h2>Don't use this tag</h2>
    <dir>
        <li>HTML</li>
        <li>tutorials</li>
    	


    </dir>
    <h2>Alternative</h2>
    <ul>
        <li>Java</li>
        <li>tutorials</li>
    </ul>
</body>
</html> 

OUTPUT :


   

Don't use this tag

  • HTML
  • tutorials
  • Alternative

    • Java
    • tutorials