Latest

recent

HTML caption align Attribute

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.


Browser Support

The attribute is deprecated, and only Firefox shows this attribute correctly. Use CSS instead.
HTML caption align Attribute Reviewed by 1000sourcecodes on 06:08 Rating: 5
Powered by Blogger.