The HTML 4.0 specification stipulates that the <caption> tag must immediately follow the <table> tag.
align=
 |
+ |
2.0 |
3.0 |
3.2 |
4.0 |
 |
1.0 |
2.0 |
3.0 |
4.0 |
|
 |
1.0 |
2.1 |
3.0 |
|
|
 |
0.9 |
1.2 |
|
|
|
|
causes the caption to be drawn horizontally aligned directed by the argument.
|
| "bottom"
 |
+ |
2.0 |
3.0 |
3.2 |
4.0 |
 |
1.0 |
2.1 |
3.0 |
|
|
|
causes the caption to be drawn, centered, at the bottom of the table or figure.
align="bottom"
| A Small Table |
|
| "center"
 |
1.0 |
2.0 |
3.0 |
4.0 |
|
 |
0.9 |
1.2 |
|
|
|
|
causes the caption to be horizontally centered relative to the centerline of the table or figure.
align="center"
| Another Table |
|
| "left"
 |
+ |
2.0 |
3.0 |
3.2 |
4.0 |
 |
1.0 |
2.0 |
3.0 |
4.0 |
|
 |
0.9 |
1.2 |
|
|
|
|
causes the caption to be drawn flush right on the left side of the table or figure.
align="left"
| A Small Table |
|
| "right"
 |
+ |
2.0 |
3.0 |
3.2 |
4.0 |
 |
1.0 |
2.0 |
3.0 |
4.0 |
|
 |
0.9 |
1.2 |
|
|
|
|
causes the caption to be drawn flush left on the right side of the table or figure.
align="right"
| Another Table |
|
| "top"
 |
+ |
2.0 |
3.0 |
3.2 |
4.0 |
 |
1.0 |
2.1 |
3.0 |
|
|
|
causes the caption to be drawn, centered, at the top of the table or figure.
align="top"
| A Small Table |
|
class=
 |
+ |
2.0 |
3.0 |
3.2 |
4.0 |
 |
1.0 |
2.0 |
3.0 |
4.0 |
|
 |
1.0 |
2.0 |
3.0 |
4.0 |
|
|
|
dir=
 |
+ |
2.0 |
3.0 |
3.2 |
4.0 |
|
|
| "ltr" |
|
| "rtl" |
|
id=
 |
+ |
2.0 |
3.0 |
3.2 |
4.0 |
 |
1.0 |
2.0 |
3.0 |
4.0 |
|
 |
1.0 |
2.0 |
3.0 |
4.0 |
|
|
|
index=
 |
+ |
2.0 |
3.0 |
3.2 |
4.0 |
|
|
lang=
 |
+ |
2.0 |
3.0 |
3.2 |
4.0 |
 |
1.0 |
2.0 |
3.0 |
4.0 |
|
 |
1.0 |
2.0 |
3.0 |
4.0 |
|
|
|
style=
 |
+ |
2.0 |
3.0 |
3.2 |
4.0 |
 |
1.0 |
2.0 |
3.0 |
4.0 |
|
|
|
title=
 |
+ |
2.0 |
3.0 |
3.2 |
4.0 |
|
|
valign=
 |
1.0 |
2.0 |
3.0 |
4.0 |
|
 |
0.9 |
1.2 |
|
|
|
|
causes the vertical orientation of the caption relative to the placement of the table or figure. When this attribute is paired with "align" above, you have complete control over where to place the caption; either above and centered, flush left, flush right or below, flush left, center or right.
|
| "top"
 |
1.0 |
2.0 |
3.0 |
4.0 |
|
|
causes the caption to be drawn above the table or figure.
valign="top"
| Yet Another Table |
|
| "bottom"
 |
1.0 |
2.0 |
3.0 |
4.0 |
|
|
causes the caption to be drawn below the table or figure.
valign="bottom"
| Again, Another Table |
|