English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Reference

HTML: <thead> align attribute

<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.

 HTML <thead> tag

Online Example

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 ‹/›

Browser Compatibility

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.

Definition and Usage

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.

Syntax

<thead align="left|right|center|justify|char">

Attribute Value

ValueDescription
leftAligns content to the left.
rightAligns content to the right.
centerCenters the content (the default value for table header elements).
justifyStretches the line so that each line can have an equal width (as in newspapers and magazines).
charAligns content to a specified character.
 HTML <thead> tag