Easy Tutorial
❮ Att Button Formnovalidate Att Form Target ❯

HTML <caption> align Attribute

HTML <caption> Tag

Example

A table with a <caption> element aligned to the bottom:


Browser Support

All major browsers support the align attribute.

Note:


Definition and Usage

The align attribute of <caption> is deprecated in HTML 4.01.

The align attribute specifies the alignment of the caption element.

This attribute aligns the caption as a block element to the left, right, top, or bottom of the table.


Compatibility Notes

HTML5 does not support the <caption> align attribute. Use CSS instead.

CSS syntax: <caption style="caption-side:bottom"> or <caption style="text-align:left">

CSS Example: Positioning Table Caption

In our CSS tutorial, you can find more details about the caption-side property.


Syntax

Attribute Values

Value Description
left Caption on the left side of the table.
right Caption on the right side of the table.
top Caption on the top side of the table.
bottom Caption on the bottom side of the table.

HTML <caption> Tag

❮ Att Button Formnovalidate Att Form Target ❯