【HTML】Advanced3:Tables: Columns, Headers, and Footers

1.



<table>

    <colgroup>

        <col>

        <col class="alternative">

        <col>

    </colgroup>

    <tr>

        <td>This</td>

        <td>That</td>

        <td>The other</td>

    </tr>

    <tr>

        <td>Ladybird</td>

        <td>Locust</td>

        <td>Lunch</td>

    </tr>

</table>

2.<table>

<caption> **</caption>vs figcaption

caption-side:bottom;

 

3.



<table>

    <thead>

        <tr>

            <td>Header 1</td>

            <td>Header 2</td>

            <td>Header 3</td>

        </tr>

    </thead>

    <tfoot>

        <tr>

            <td>Footer 1</td>

            <td>Footer 2</td>

            <td>Footer 3</td>

        </tr>

    </tfoot>

    <tbody>

        <tr>

            <td>Cell 1</td>

            <td>Cell 2</td>

            <td>Cell 3</td>

        </tr>

        <!-- etc. -->

    </tbody>

</table>

你可能感兴趣的:(Advanced)