przewiń do treści

HTML, XHTML i CSS. Praktyczne projekty. Wydanie II

Włodzimierz Gajda

<table>
    <caption>Przykładowa tabela ilustrująca....</caption>
    <colgroup id="k1">
        <!--  kolumna pierwsza  -->
        <col />
    </colgroup>
    <colgroup id="k2">
        <!--  dwie kolumny: druga i trzecia sa zgrupowane -->
        <col />
        <col />
    </colgroup>
    <colgroup id="k3">
        <!--  trzy kolumny: czwarta, piata i szosta sa zgrupowane -->
        <col />
        <col />
        <col />
    </colgroup>
    <thead>
        <tr>
            <th>A</th>
            <th>B</th>
            <th>C</th>
            <th>D</th>
            <th>E</th>
            <th>F</th>
        </tr>
  </thead>
    <tfoot>
        <tr>
            <th>A</th>
            <th>B</th>
            <th>C</th>
            <th>D</th>
            <th>E</th>
            <th>F</th>
        </tr>
    </tfoot>
    <tbody>
        <tr>
            <td>1</td>
            <td>2</td>
            <td>3</td>
            <td>4</td>
            <td>5</td>
            <td>6</td>
        </tr>
    </tbody>
</table>

Listing 27.9. Tabela o sześciu kolumnach podzielonych na trzy grupy

Rozdział 27. Tabele

listing-27-09.txt