![]() |
|
<dir>deprecated
![]() |
![]() |
||||||||||||||||||||||||||||||||||||||||||||
Previous versions of HTML have declared <dir> as deprecated. HTML 4.0 does not, instead it recommends the use of <ul>. However, it does show the entire compliment of "standard" attributes. Go figure!
The DIR tag encloses a list of items with a maximum width of 20 characters. (classical description) The intent is that a browser can render this in columns of 24 characters wide. The <DIR> list uses the <li> tags to identify each item in the list.
Example:
<lh>Heading
<li>first item
<li>second item
<li>third item
</dir>
| align= | causes horizontal alignment directed by the argument. | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| "left" | causes the caption to be drawn flush left of the table or figure. <lh>heading <li>item 1 <li>item 2 <li>item 3 </dir> |
|||||||||||||||||||
| "right" | causes the caption to be drawn flush right of the table or figure.
<lh>heading <li>item 1 <li>item 2 <li>item 3 </dir> |
|||||||||||||||||||
| "center" | causes the caption to be horizontally centered relative to the centerline of the table or figure.
<lh>heading <li>item 1 <li>item 2 <li>item 3 </dir> |
|||||||||||||||||||
| "justify" | causes the text to be flush left and right.
<lh>heading <li>item 1 <li>item 2 <li>item 3 </dir> |
|||||||||||||||||||
class=
|
||||||||||||||||||||
| compact= deprecated
| the intention of this attribute is to reduce the white space between each item in the list. Few browsers recognize it.
<lh>heading <li>item 1 <li>item 2 <li>item 3 </dir> |
|||||||||||||||||||
dir=
|
||||||||||||||||||||
| "ltr" | ||||||||||||||||||||
| "rtl" | ||||||||||||||||||||
id=
|
||||||||||||||||||||
index=
|
||||||||||||||||||||
lang=
|
list of language codes list of country codes |
|||||||||||||||||||
style=
|
||||||||||||||||||||
title=
|
||||||||||||||||||||