
- 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 <table>
Descrizione
Il tag HTML <table> viene usato per creare una tabella. Esso contiene al suo interno altri tag che servono a definire la struttura della tabella.
Esempio
<!DOCTYPE html> <html> <head> <title>HTML table Tag</title> </head> <body> <table border="1"> <tr> <th>Team</th> <th>Ranking</th> </tr> <tr> <td>India</td> <td>1</td> </tr> <tr> <td>South Africa</td> <td>2</td> </tr> <tr> <td>Australia</td> <td>3</td> </tr> </table> </body> </html>
Produrrà il seguente risultato:
Team | Ranking |
---|---|
India | 1 |
South Africa | 2 |
Australia | 3 |
Attributi Globali
Questo tag supporta tutti gli attributi globali descritti in - HTML - Referenze Attributi
Attributi Specifici
The HTML <table> 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. |
bgcolor | rgb(x,x,x) #hexcode colorname | Deprecato-Definisce il colore di sfondo della tabella. |
border | pixels | Deprecato-Definisce la larghezza del bordo. Se impostato su "0" indica che non verrĂ mostrato. |
cellpadding | pixels o % | Deprecato-Definisce lo spazio fra il bordo della cella ed il suo contenuto. |
cellspacing | pixels o % | Deprecato-Definisce lo spazio fra le celle. |
frame | void above below hsides lhs rhs vsides box border | Deprecato-utilizzato in combinazione con l'attributo border, specifica il lato della struttura che costituisce il bordo della tabella verrĂ visualizzato. |
rules | none groups rows cols all | Deprecato-Used in conjunction with the border attribute, utilizzato in combinazione con l'attributo border, specifica che regole appaiono fra le celle della tabella. |
summary | text | Deprecato-Indica un riassunto del contenuto. |
width | pixels o % | Deprecato-Imposta la larghezza della tabella. |
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