HTML tfoot char attribute

Example

The following HTML table aligns the content inside the tfoot element to the "." character:
<table border="1" width="100%">
    <tr>
      <th>Month</th>
      <th>Savings</th>
    </tr>
    <tr>
      <td>January</td>
      <td>$100</td>
    </tr>
    <tr>
      <td>February</td>
      <td>$80</td>
    </tr>
  <tfoot align="char" char=".">
    <tr>
      <td>Sum</td>
      <td>$180.00</td>
    </tr>
  </tfoot> 
</table>


Definition and Usage

The char attribute specifies the alignment of the content inside the tfoot element to a character.
The char attribute can only be used if the align attribute is set to "char".
The default value of char is the decimal-point character of the current language.

Browser Support

Note: The char attribute is not supported by any of the major browsers.

Syntax

<tfoot char="value">

Attribute Values

Value Description
character Specifies the character to align the content to
Share this article :
 
Copyright © 2012. Best Online Tutorials | Source codes | Programming Languages - All Rights Reserved