
- 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 <td>
Descrizione
Il tag HTML <td> definisce un campo di una tabella.
Esempio
<!DOCTYPE html> <html> <head> <title>HTML td Tag</title> </head> <body> <table border="1"> <tr> <th>Subject</th> <th>Topic</th> </tr> <tr> <td>Java</td> <td>Threading</td> </tr> <tr> <td>C++</td> <td>Virtual Functions</td> </tr> <tr> <td>Linux</td> <td>File Systems</td> </tr> </table> </body> </html>
Produrrà il seguente risultato:
Subject | Topic |
---|---|
Java | Threading |
C++ | Virtual Functions |
Linux | File Systems |
Attributi Globali
Questo tag supporta tutti gli attributi globali descritti in - HTML - Referenze Attributi
Attributi Specifici
Il tag HTML <td> supporta anche i seguenti attributi aggiuntivi:
Attributo | Valore | Descrizione |
---|---|---|
abbr | abbreviated_text | Deprecato-Definisce una versione abbreviata del contenuto di una cella. |
align | right left center justify char | Deprecato-Allineamento visuale. |
axis | name | Deprecato-Indica una categoria per il campo. Può essere potenzialmente utilizzato per eseguire query nei dati della tabella. |
bgcolor | rgb(x,x,x) #hexcode colorname | Deprecato-Definisce il colore di sfondo della cella. |
char | character | Deprecato-Specifica a quale carattere allineare il testo. Usato quando 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 | Definisce il numero di campi che dovrà occupare. |
header | id | Specifica un'elenco separato da spazi di celle di intestazione che contengono informazioni riguardo questa cella. Il valore deve corrispondere all'ID della cella di intestazione (che viene impostata utilizzando l'attributo id). Questo attributo è utile per i browser non visivi. |
height | pixels | Deprecato-Imposta l' altezza of the table cell. |
nowrap | nowrap | Deprecato-Evita che il testo vada a capo. |
rowspan | numbers | Definisce quante righe deve occupare il campo attuale. |
scope | col colgroup< row rowgroup | Deprecato-Viene utilizzato nelle tabelle di intestazione e indica che colonne sono usate come intestazioni. |
valign | top middle bottom baseline | Deprecato-Allineamento verticale. |
width | pixels o % | Deprecato-Imposta la larghezza of the table cell |
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