Easy Tutorial
❮ Att Input Value Av Prop Videotracks ❯

HTML <th> align Attribute

HTML <th> Tag

Example

Align the content of the header cell to the left:


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 in a header cell.


Syntax

Attribute Values

Value Description
left Aligns the content to the left.
right Aligns the content to the right.
center Centers the content (default for <th>).
justify Stretches the lines so that each line has equal width (like in newspapers and magazines).
char Aligns the content to a specified character.
❮ Att Input Value Av Prop Videotracks ❯