TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

HTML dir Tag

HTML dir Tag with html tutorial, tags, anchor, img, div, entity, textarea, marquee, p tag, heading tag, h1, h2, table, formatting, attribute, elements, ol, ul, Input Types, block element tag, inline element tag, html tags, phrase tag, head, body, form, lists, symbols etc.

<< Back to HTML

HTML <dir> tag (Not Supported in HTML5)

HTML <dir> tag was used as a container for the list of files/folders or content of the directory. The <dir> element is used with the <li> tags, and list of directories renders in bullets by default.

Note: Do not use HTML <dir> tag as it is deprecated now and not supported in HTML5. You can use <ul> tag and CSS property instead.

Syntax

<dir>Directory list... </dir>

Following are some specifications about the HTML <dir> tag

Display Block
Start tag/End tag Both Start and End tag
Usage HTML lists

Example 1

<!DOCTYPE html>
<html>
<head>
	<title>Dir tag</title>
	<style>
		h2{
		    color: #b22222;}
		p{
		   color: green;}
	</style>
 </head>
<body>
  <h2>Example of dir tag</h2>
  <p>List of javaTpoint popular Tutorials</p>
    <dir>
	<li>Java-tutorial</li>
	<li>DBMS-tutorial</li>
	<li>DataStructure-tutorial</li>
	<li>HTML-tutorial</li>
   </dir>
 </body>
</html>
Test it Now

Output:

HTML dir tag

Attribute

Tag-specific Attribute

Attribute Value Description
compact compact It specifies that list should display smaller than normal. (Not supported in HTML5)

Global Attribute

HTML <dir> tag supports the Global attributes.

Event Attribute

HTML <dir> tag supports the Event attributes.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<dir>YesYesYesYesYes
Next TopicHTML div Tag




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf