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

Manual de referência do HTML

大全 de etiquetas HTML

Propriedade char do HTML tbody

A propriedade char especifica o modo de alinhamento do conteúdo dentro do elemento <tbody> com o caractere. A propriedade char pode ser usada apenas quando a propriedade align estiver configurada como “char”.

 HTML <tbody> tag

Exemplo online

Alinhar o conteúdo do elemento <tbody> com o caractere "."

<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 Thoughts</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
characterSpecifies the character to align the content with.
 HTML <tbody> tag