Il tag HTML <tbody>



Descrizione

The HTML <tbody> permettere di aggiungere il contenuto di una tabella. È usato in combinazione con i tag thead e tfoot in modo da determinare le varie parti di una tabella.

Esempio

<!DOCTYPE html>
<html>
<head>
<title>HTML tbody Tag</title>
</head>
<body>
<table style="width:100%" border="1">
<thead>
<tr>
<td colspan="4">This is the head of the table</td>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="4">This is the foot of the table</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
<tr>
...more rows here containing four cells...
</tr>
</tbody>
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
<tr>
...more rows here containing four cells...
</tr>
</tbody>
</table>
</body>
</html>

Produrrà il seguente risultato:

...more rows here containing four cells... ...more rows here containing four cells...
This is the head of the table
This is the foot of the table
Cell 1 Cell 2 Cell 3 Cell 4
Cell 1 Cell 2 Cell 3 Cell 4

Attributi Globali

Questo tag supporta tutti gli attributi globali descritti in - HTML - Referenze Attributi

Attributi Specifici

The HTML <tbody> supporta anche i seguenti attributi aggiuntivi:

AttributoValoreDescrizione
alignright
left
center
justify
char
Deprecato-Allineamento visuale.
charcharacterDeprecato-Specifica a quale carattere allineare il testo. Usato quando align="char" Used when align="char"
charoffpixels o %Deprecato-Specifica un offset per l' allineamento (in pixels o percentuale) rispetto al primo carattere specificato dall' attributo char. Usando quando align="char"
valigntop
middle
bottom
baseline
Deprecato-Allineamento verticale.

Attributi Evento

Questo tag supporta tutti gli attributi evento descritti in - HTML - Referenze Eventi

Compatibilità Browser

ChromeFirefoxIEOperaSafariAndroid
SiSiSiSiSiSi
html_tags_reference.htm
Advertisements