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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML td height Eigenschaft

td height-Eigenschaft legt die Höhe der Zelle fest. In der Regel nehmen Zellen den Raum ein, den sie für ihre anzeigbaren Inhalte benötigen. Die Eigenschaft height wird verwendet, um die vorgedefinierte Höhe der Zelle zu setzen.

 HTML <td> Tag

Online-Beispiel

Zwei Zellen mit vorgedefinierten Höhen:

<table border="1">
  <tr>
      <th>Bücher über Programmiersprachen</th>
      <th>Preis</th>
  </tr>
    <tr>
      <td height="80">PHP-Basisanleitung</td>
      <td height="80">$50</td>
    </tr>
    <tr>
      <td>JAVA-Programmierung - Gedanken</td>
      <td>$80</td>
    </tr>
</table>
Testen Sie, sehen Sie ‹/›

Browser-Kompatibilität

IEFirefoxOperaChromeSafari

All major browsers support the height attribute.

Definition and Usage

HTML5 The <td> height attribute is not supported. Please use CSS instead.

In HTML 4.01 In the example, the height attribute of <td> is deprecated.

 The height attribute specifies the height of the cell.

Generally, cells occupy the space required for their display content. The height attribute is used to set the predefined height of the cell.

Compatibility Comments

In HTML 4.01 In the example, the height attribute of <td> is deprecated. Please use CSS instead.

CSS Syntax: <td style="height:100px">

CSS Example: Set the height of table cells

In our CSS tutorial, you can find more about height Attribute details.

Syntax

<td height="pixels|%">

Attribute Value

ValueDescription
pixelsSet the height value in pixels (for example height="50")。
%Set the height value as a percentage of the element (for example height="50%")。
 HTML <td> Tag