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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <thead> align -Attribut

<thead> align -Attribut verwenden, das align -Attribut gibt die horizontale Ausrichtung des Inhalts im <thead>-Element an, ein Online-Beispiel zeigt, wie das align -Attribut von <thead> verwendet wird, die Kompatibilität des Browsers, die Syntaxdefinition und die detaillierten Informationen zu seinen Attributwerten.

 HTML <thead> Tag

Online-Beispiel

In <thead>-Elementen den Inhalt rechtsbündig ausrichten:

<table style="width:100%;" border="1">
<thead align="right">
  <tr>
    <th height="50">Puppenhersteller</th>
    <th height="50">Puppenart</th>
  </tr>
  </thead>
  <tr>
    <td>Barbie-Königin</td>
    <td>6Gelenkige Barbie-Puppe</td>
  </tr>
  <tr>
    <td>Barbie-Königin</td>
    <td>12Gelenkige Barbie-Puppe</td>
  </tr>
</table>
Test it out ‹/›

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
leftLeft align the content.
rightRight align the content.
centerCenter align the content (the default value for table header elements).
justifyExpand the line so that each line can have equal width (as in newspapers and magazines).
charAlign the content to the specified character.
 HTML <thead> Tag