×
   ❮     
HTML CSS MySql Javascript SQL PYTHON JAVA C++ C# BOOTSTRAP REACT XML NODEJS ANGULAR DJango Rust Android VUE
     ❯   

HTML Dir tag


Dir tag in HTML:

"Dir" tag in HTML served to establish a directory list, by exhibiting a list of files and subdirectories.

On the other hand, it has become older and doesn't work with new HTML5 version anymore.

In this case HTML5 persuades you to adhere to smaller elements such as lists and tables while CSS will do the styling.

Example

The "Dir" tag was employed to specify the text direction contained in the block-level element, for instance, the LTR or the RTL.

Example

<!DOCTYPE html> 
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Dir Tag</title>
</head>
<body>
  <dir>
    <li>Php</li>
    <li>Java</li>
    <li>Javascript</li>
  </dir>
</body>
</html>
Try it Yourself »

Hey there! Let's go for Learn fasta then! It is more than just coding; it is to have the superpower that can solve any problem. Through simple and easy-to-grasp examples you will sail through the learning process. In addition, it is not just about coding– you will acquire competencies on how to solve complex problems, analyze data, and come up with efficient solutions. Shall we start this wonderful journey together! learnfasta.com terms of use, Copyright 2025 All Rights Reserved.