HTML <tfoot> alignAttribute

HTML tfoot 标签参考手册HTML <tfoot> Tag

Examples

Center-aligns the content in the <tfoot> element:

<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="center">
    <tr>
      <td>Sum</td>
      <td>$180</td>
    </tr>
  </tfoot> 
</table>

Try it Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the align attribute.

Note:IE does not correctly handle the "justify" value; IE processes it as centered.

Note:Almost no browser can correctly handle the "char" value.


Definition and Usage

HTML5 does not support the <tfoot> align attribute. Use CSS instead.

The align attribute specifies the horizontal alignment of the content in the <tfoot> element.


Syntax

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

Attribute Values

Value Description
left Left-aligns the content (default value).
right Right-aligns the content.
center Center-aligns the content.
justify Stretches the lines so that each line has equal width (like in newspapers and magazines).
char Aligns the content to a specified character.


HTML tfoot 标签参考手册HTML <tfoot> Tag Other Extensions