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

Manuel de référence HTML

Tous les balises HTML

Attribut char HTML tbody

L'attribut char spécifie la manière dont le contenu de l'élément <tbody> est aligné avec le caractère. L'attribut char ne peut être utilisé que lorsque l'attribut align est réglé sur "char".

 HTML <tbody> tag

Exemple en ligne

Aligner le contenu de l'élément <tbody> avec le caractère "." :

<table border="1">
  <tr>
      <th>Programming language books</th>
      <th>Price</th>
  </tr>
  <tbody align="char" char=".">
    <tr>
      <td>PHP basic tutorial</td>
      <td>$50</td>
    </tr>
    <tr>
      <td>JAVA programming ideas</td>
      <td>$80</td>
    </tr>
  </tbody>
</table>
Test and see ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

Note:Almost all mainstream browsers do not support the char attribute.

Definition and usage

HTML5 The char attribute of <tbody> is not supported.

The char attribute specifies the alignment of the content within the <tbody> element relative to a character.

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

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

Syntax

<tbody char="character">

Attribute value

ValueDescription
characterSpecify the character to align the content with.
 HTML <tbody> tag