HTML | PHP | Forum

HTML <dir> tag


<dir> - </dir>

Definition and Usage

The DIR element was designed to be used for creating multicolumn directory lists. The element contains one or more LI elements that define the actual items of the list. <dir> is deprecated in HTML 4 favor of UL.

Optional Attributes

Attribute Value Description
compact compact_rendering Deprecated. Use styles instead

Standard Attributes

id, class, title, style, dir, lang, xml:lang

For a full description, go to Standard Attributes.

Event Attributes

onclick, ondblclick, onfocus, onblur, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup

For a full description, go to Event Attributes.


Source Output
  • Book
  • CD
  • Video

  • Home

    Learn HTML
    HTML Tutorial

    HTML Reference
    HTML by function
    HTML by Alphabet

    HTML events
    HTML attributes
    HTML color names

    <h1> to <h6>


    Copyright 2005-8 Sunilcare.  All Rights Reserved.
    Comments or suggestions? Contact us.About us