It is a Directory List element used to present a list of items. The following text may be arranged in columns, each beginning with an LI element and none containing more than 20 characters.
<DIR
CLASS=Style Sheet class name
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
STYLE=styling
TITLE=text content
event = script
>
Parameter |
Description |
CLASS |
Class of the tag being defined. This is used to associate a subclassed style sheet with the tag. |
ID |
SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underscore character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position. |
LANG |
Specifies which language to use in ISO standard language abbreviation form. |
LANGUAGE |
Specifies the language the current script is written in and invokes the
proper scripting engine. The default value is JAVASCRIPT. |
STYLE |
Inline style sheet for the tag. |
TITLE |
The TITLE attribute is for advisory information (unless used with a mailto: attribute). The Title attribute should provide the title of the document whose address is given by the HREF attribute. The contents of the title attribute will be displayed in a tooltip during the mouse moves on the link. Internet Explorer 4.0 (and above) is the only browser to implement this. |
event |
Can be one or more of these events: |
<DIR> is deprecated in HTML 4.0. Authors are encouraged to use <UL> instead.
<DIR>
<LI>item 1
<LI>item 2
<LI>item 3
<LI>item 4
</DIR>
The code will be rendered as:
item 1 item 2 item 3 item 4
A directory list must begin with the <DIR> element which is immediately followed by a <LI> (list item) element.
This element is a block element. Both the start and end tags are required.