
- Guida HTML
- HTML - Home
- HTML - Introduzione
- HTML - Tag Basiliari
- HTML - Elementi
- HTML - Attributi
- HTML - Formattazione
- HTML - Tags Phrase
- HTML - Meta Tags
- HTML - Commenti
- HTML - Immagini
- HTML - Tabelle
- HTML - Liste
- HTML - Link Testuali
- HTML - Link nelle Immagini
- HTML - Link ad Indirizzi Email
- HTML - Frame
- HTML - Iframe
- HTML - Blocchi
- HTML - Sfondi
- HTML - Colori
- HTML - Fonts
- HTML - Form
- HTML - Incorporare Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Fogli di Stile
- HTML - Javascript
- HTML - Layout
- HTML Referenze
- HTML - Riferimenti Tag
- HTML - Riferimenti Attributi
- HTML - Riferimenti Eventi
- HTML - Riferimenti Font
- HTML - Codici ASCII
- Tabella Codici ASCII
- HTML - Colori
- HTML - Entità
- HTML - Rif Font
- HTML - Rif Eventi
- MIME Media Types
- HTML - Coifica URL
- Codici Linguaggi ISO
- HTML - Codifica Caratteri
- HTML - Tag Deprecati
- HTML Risorse Utili
- HTML - Color Code Builder
- HTML - Editor Online
Il tag HTML <th>
Descrizione
Il tag HTML <th> serve per indicare una cella di intestazione all' interno di una tabella.
Esempio
<!DOCTYPE html> <html> <head> <title>HTML th Tag</title> </head> <body> <table border="1"> <tr> <th>ID</th> <th>Product Details</th> </tr> <tr> <td>00L1</td> <td>i3, 500gb laptop</td> </tr> </table> </body> </html>
Produrrà il seguente risultato:
ID | Product Details |
---|---|
00L1 | i3, 500gb laptop |
Attributi Globali
Questo tag supporta tutti gli attributi globali descritti in - HTML - Referenze Attributi
Attributi Specifici
The HTML <th> supporta anche i seguenti attributi aggiuntivi:
Attributo | Valore | Descrizione |
---|---|---|
abbr | abbreviated_text | Deprecato-Indica una sintesi del contenuto nella cella. |
align | right left center justify char | Deprecato-Allineamente all' interno della cella. |
axis | name | Deprecato-Specifica una categoria per il tag th. |
bgcolor | rgb(x,x,x) #hexcode colorname | Deprecato-Specifica un colore di sfondo per la cella. |
char | character | Deprecato-Specifica a quale carattere allineare il testo. Usato quando align="char" Used when align="char" |
charoff | pixels o % | Deprecato-Specifica un offset per l' allineamento (in pixels o percentuale) rispetto al primo carattere specificato dall' attributo char. Usando quando align="char" |
colspan | numerico | Specifica quante colonne deve occupare la cella. |
headers | id | Specifica una o più celle a cui fa riferimento. |
height | pixels | Deprecato-Imposta l' altezza of the header cell. |
nowrap | nowrap | Deprecato-Evita che il testo vada a capo. |
rowspan | numbers | Specifica quante righe deve occupare la cella. |
scope | col colgroup row rowgroup | Questo attributo è usato nelle celle di intestazione per specificare quale celle usano questa informazione. |
valign | top middle bottom baseline | Deprecato-Allineamento verticale. |
width | pixels o % | Deprecato-Imposta la larghezza della cella. |
Attributi Evento
Questo tag supporta tutti gli attributi evento descritti in - HTML - Referenze Eventi
Compatibilità Browser
Chrome | Firefox | IE | Opera | Safari | Android |
---|---|---|---|---|---|
Si | Si | Si | Si | Si | Si |
html_tags_reference.htm
Advertisements