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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <tfoot> valign-Attribut

<tfoot> valign-Attribut bestimmt die horizontale Ausrichtung des Inhalts des <tfoot>-Elements.

 HTML <tfoot> Tag

Online-Beispiel

Legen Sie die horizontale Ausrichtung des Inhalts des <tfoot>-Elements auf den Boden ausrichten:

<table style="width:100%;" border="1">
    <tr>
      <th>Buch der Programmiersprache</th>
      <th>Preis</th>
    </tr>
    <tr>
      <td align="right">PHP Basics Tutorial</td>
      <td>$30</td>
    </tr>
    <tr>
      <td align="left">JAVA Programming Thought</td>
      <td>$80</td>
    </tr>
   <tfoot valign="bottom">
      <tr>
        <td>Summe</td>
        <td>$110.00</td>
      </tr>
  </tfoot> 
</table>
Testen Sie heraus ‹/›

Browser Kompatibilität

IEFirefoxOperaChromeSafari

All major browsers support the valign attribute.

Definition and Usage

HTML5 The valign attribute of <tfoot> is not supported. Please use CSS instead.

The valign attribute specifies the vertical alignment of the content within the <tfoot> element.

Syntax

<tfoot valign="top|middle|bottom|baseline">

Attribute Value

ValueDescription
topAlign the content upward.
middleAlign the content to the center (default value).
bottomAlign the content downward.
baselineAlign to the baseline. The baseline is an imaginary line. In a line of text, most letters are based on the baseline. The baseline value sets all table data in the line to share the same baseline. The effect of this value is often the same as the bottom value. However, if the text sizes are different, the baseline effect is better. Please see the illustration below.

When the text size is different, bottom vs. baseline illustration:

valign="bottom"

valign="baseline"

 HTML <tfoot> Tag