Definition and Usage The align attribute specifies horizontal and vertical position of the caption element relative to the table element. ...
Definition and Usage
The align attribute specifies horizontal and vertical position of the caption element relative to the table element.Compatibility Notes
The align attribute of the caption element was deprecated in HTML 4.01 and is not supported in XHTML 1.0 Strict DTD.Use CSS instead.
CSS syntax: <caption style="caption-side:right">
Syntax
<caption align="alignment"> |
Syntax Example
<caption align="right"> |
Attribute Values
Value | Description |
---|---|
left | The caption text will be shown on the left side of the table. |
right | The caption text will be shown on the right side of the table. |
top | The caption text will be shown on the top side of the table. |
bottom | The caption text will be shown on the bottom side of the table. |