HTML4 > Exemple de tableau en XHTML

TitreExemple de tableau en XHTML
Postée le30-11-2009
Affichée712
Mini-lien
Description

Regarde ca de pres :)

EtatNe contient pas d'erreurs. Ne contient pas d'erreurs.
Code d'insertion
Options
Afficher les numéros de lignes  Mettre la source en plein ecran  Selectionner la source  Partager sur Facebook 
Téléchargement Telecharger en format txt  Telecharger en format pdf  Telecharger en format html
Plein ecran
<table>
        <caption>L&eacute;gende du tableau</caption>
        <colgroup>
                <col style="background-color:#000fff; width:150px;"/>
                <col style="background-color: #fff000; width:150px;"/>
                <col style="background-color: #0ffff0; width:150px;"/>
        </colgroup>
        <thead>
                <tr>
                        <th>Col1</th>
                        <th>Col2</th>
                        <th>Col3</th>
                </tr>
        </thead>
        <tfoot>
                <tr>
                        <td colspan="3">Footer</td>
                </tr>
        </tfoot>
        <tbody>
                <tr>
                        <td>L1C1</td>
                        <td>L1C2</td>
                        <td>L1C3</td>
                </tr>
                <tr>
                        <td>L2C1</td>
                        <td>L2C2</td>
                        <td>L2C3</td>
                </tr>
                <tr>
                        <td>L3C1</td>
                        <td>L3C2</td>
                        <td>L3C3</td>
                </tr>
                <tr>
                        <td>L4C1</td>
                        <td>L4C2</td>
                        <td>L4C3</td>
                </tr>
                <tr>
                        <td>L5C1</td>
                        <td>L5C2</td>
                        <td>L5C3</td>
                </tr>
        </tbody>
</table>