Easy Tutorial
❮ Att Output Name Tag Script ❯

HTML <td> align Attribute

HTML <td> Tag

Example

Align the content of a cell to the right:


Browser Support

All major browsers support the align attribute.

Note: Almost no browsers correctly handle the "char" value.


Definition and Usage

The align attribute specifies the horizontal alignment of content within a cell.


Syntax

Attribute Values

Value Description
left Aligns the content to the left (default for <td>).
right Aligns the content to the right.
center Centers the content.
justify Stretches the lines so that each line has equal width (like in newspapers and magazines).
char Aligns the content to a specific character.
❮ Att Output Name Tag Script ❯