<thead>
(tag HTML) definisce semanticamente la parte superiore (o testa) della tabella, così distinguendola dalla parte inferiore o piede (tag HTML <tfoot>
) e dal corpo (tag HTML <tbody>
) della tabella stessa. Le celle di tale sezione della tabella sono generalmente create con i tag HTML <th>
ivi annidati. Alcuni web browser possono stampare gli Elementi HTML <tfoot>
e <thead>
su ciascuna pagina se la relativa tabella si sviluppa su più pagine.
attributi
speciali
Nessuno.
globali
Caricamento…
scheda tecnica
– Categoria: nessuna
– Tipo: [in costruzione]
– Intefraccia DOM: HTMLTableSectionElement
– Supporto browser: totale
Sintassi
<table> <thead> [oggetto] </thead> <tbody></tbody> <tfoot></tfoot> </table>
Default CSS
thead { display: table-header-group; vertical-align: middle; border-color: inherit; }
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