Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY CYBERSECURITY DATA SCIENCE
     ❯   

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> 
Try it Yourself »

Example

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

<ul style="line-height:80%">
  <li>html</li>
  <li>xhtml</li>
  <li>css</li>
</ul> 
Try it Yourself »

Tip: In our CSS tutorial you can find more details about styling lists.