Easy Tutorial
❮ Tag Audio Tag Main ❯

HTML <tr> align Attribute

HTML <tr> Tag

Example

HTML table with centered rows:


Browser Support

All major browsers support the align attribute.

Note: Very few browsers correctly handle the "char" value.


Definition and Usage

The align attribute specifies the horizontal alignment of content in a table row.


Syntax

Attribute Values

Value Description
left Left-aligns the content (default for <td> elements).
right Right-aligns the content.
center Centers the content (default for <th> elements).
justify Stretches the lines so that each line has equal width (like in newspapers and magazines).
char Aligns the content to a specific character.
❮ Tag Audio Tag Main ❯