English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
<thead> align attribute usage, the align attribute specifies the horizontal alignment of the content within the <thead> element, online examples demonstrate how to use the <thead> align attribute, browser compatibility, syntax definition, and detailed information about its attribute values, etc.
Align content to the right within the <thead> element:
<table style="width:100%;" border="1"> <thead align="right"> <tr> <th height="50">Doll Manufacturer</th> <th height="50">Doll Type</th> </tr> </thead> <tr> <td>Barbie Princess</td> <td>6Joint Barbie Doll</td> </tr> <tr> <td>Barbie Princess</td> <td>12Joint Barbie Doll</td> </tr> </table>Test to see ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the align attribute.
Note:IE cannot handle the "justify" value correctly; IE will process it as centered.
Note:Almost no browsers can handle the "char" value correctly.
HTML5 The <thead> align attribute is not supported. Use CSS instead.
The align attribute specifies the horizontal alignment of the content within the <thead> element.
<thead align="left|right|center|justify|char">
Value | Description |
---|---|
left | Aligns content to the left. |
right | Aligns content to the right. |
center | Centers the content (the default value for table header elements). |
justify | Stretches the line so that each line can have an equal width (as in newspapers and magazines). |
char | Aligns content to a specified character. |