[HTML] [tag] <th>

<th> (tag HTML) crea, annidato all’interno del tag HTML <tr> (suo padre necessario), le celle di una riga di intestazione di una tabella (table header), generalmente evidenziate o comunque formattate di default in modo diverso dalle altre.

attributi

speciali

Caricamento…

Caricamento…

Caricamento…

Caricamento…

Caricamento…

Caricamento…

globali
Caricamento…

scheda tecnica

– Categoria: nessuna
– Tipo: [in costruzione]
– Intefraccia DOM: HTMLTableHeaderCellElement
– Supporto browser: totale

Sintassi

<table>
 <tr>
  <th>[oggetto]</th>
 </tr>
<table>

Default CSS

th {
  display: table-cell;
  vertical-align: inherit;
  font-weight: bold;
  text-align: center;
}

Esempio

<table>
  <tr>
    <th>Cella 1</th>
    <th>Cella 2</th>
  </tr>
  <tr>
    <td>Cella 3</td>
    <td>Cella 4</td>
  </tr>
</table>

Cella 1 Cella 2
Cella 3 Cella 4

Contenuti correlati

  • CSS
  • HTML
  • JavaScript
  • jQuery
  • PHP
  • SQL
  • WORDPRESS

Fonti esterne

html, tag html

Related Articles

0 Comment

Rispondi