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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML td align Eigenschaft

Die Eigenschaft align bestimmt die horizontale Ausrichtung des Inhalts in der Zelle. Alle gängigen Browser unterstützen die Eigenschaft align.

 HTML <td> Tag

Online-Beispiel

Inhalt der Zellen rechtsbündig ausrichten:

<table style="width:100%;" border="1">
  thead>
    <tr>
      <th>Bücher zur Programmiersprache</th>
      <th>Preis</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td align="right">PHP-Basis-Tutorial</td>
      <td>$50</td>
    </tr>
    <tr>
      <td align="left">JAVA Programming Ideas</td>
      <td>$80</td>
    </tr>
  </tbody>
</table>
Test see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the align attribute.

Note:All major browsers can correctly handle the "char" value.

Definition and Usage

HTML5 The <td> align attribute is not supported. Please use CSS instead.

The align attribute specifies the horizontal alignment of the content within the cell.

Syntax

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

Attribute Value

ValueDescription
leftAlign the content to the left (the default value for <td>).
rightAlign the content to the right.
centerAlign the content centrally.
justifyExtend the line so that each line can have equal width (for example, in newspapers and magazines).
charAlign the content to the specified character.
 HTML <td> Tag