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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML td char Eigenschaft

Die Property "char" legt die Ausrichtung des Inhalts in der Zelle auf den Zeichensatz fest, und kann nur verwendet werden, wenn die Property "align" auf "char" gesetzt ist.

 HTML <td> Tag

Online-Beispiel

Justieren Sie den Inhalt des Datenblocks "Preis" mit dem Zeichensatz "."

<table style="width:100%;" border="1">
  <thead>
    <tr>
      <th>Course</th>
      <th>Price</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>PHP Basic Course</td>
      <td align="char" char=".">450.00</td>
    </tr>
    <tr>
      <td>JAVA Programming Course</td>
      <td align="char" char=".">880.00</td>
    </tr>
  </tbody>
</table>
Test it out ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

Almost all mainstream browsers do not support the char attribute.

Definition and Usage

HTML5 The <td> char attribute is not supported.

The char attribute specifies the alignment of the content within the cell with the character.

The char attribute can only be used when the align attribute is set to 'char'.

The default value of char is the decimal point character of the page language.

Syntax

<td char="character">

Attribute Value

ValueDescription
characterSpecifies the character to align the content with.
 HTML <td> Tag