dir

Form

<dir> ... </dir>

Attributes

attribute default description
id none specifies the unique ID
class none specifies the style sheet class
style none specifies the style sheet
compact --- specifies the display format
type disc specifies the list mark

Support

HTML 2, HTML 3.2
Microsoft (MSDN)
[IE3 or later][Firefox 1 or later][Safari 1 or later][Opera 3 or later][Netscape 2 or later]

Explanation

The dir tag specifies a file list in directory lists and etc..

Related Tags

menu

Sample Code [Output]

<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=shift_jis">
<title>Sample</title>
</head>
<body>
<h1>Sample</h1>
<dir>
<li>../
<li>ansi.txt
<li>antialias.gif
<li>photo.jpg
<li>hdrfx1.mpg
</dir>
</body>
</html>