<table> (tag HTML) crea una tabella, attraverso i tag HTML figli <tr>, per le righe, e i tag HTML nipoti <td> e <th>, per le celle, eventualmente distinti e aggregati nei tag HTML <tbody>, <tfoot> e <thead>.
attributi
speciali
Caricamento…
globali
Caricamento…
scheda tecnica
– Contenuto: flusso
– Tipo: blocco
– Intefraccia DOM: HTMLTableElement
– Supporto browser: totale
Sintassi
<table> [oggetto] </table>
Default CSS
table {
display: table;
border-collapse: separate;
border-spacing: 2px;
border-color: gray;
}
Esempio
<table>
<thead>
<tr>
<th>Cella 1</th>
<th>Cella 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cella 3</td>
<td>Cella 4</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Cella 5</td>
<td>Cella 6</td>
</tr>
</tfoot>
</table>
| Cella 1 | Cella 2 |
|---|---|
| Cella 3 | Cella 4 |
| Cella 5 | Cella 6 |
0 Comment