HTML Tables

HTML tables are convenient for storing large bundles of information in a neat way. The example code below will create a table with 4 rows and 3 colums

        <th>Planet Name</th>
        <th>Planet Image</th>
        <th>Planet Link</th>
        <td><img src="" alt="Earth"></td>
        <td><a href="">Earth Information</a></td>
        <td><img src="" alt="Mars"></td>
        <td><a href="">Mars Information</a></td>
        <td><img src="" alt="Jupiter"></td>
        <td><a href="">Jupiter Information</a></td>

Above we have the table element, the tr or Table Row element, the th or Table Header element and td or Table Data element. The table header and table data elements must be within a table row elements.

Tables can seem difficult at first because there several tags used in a table. The best way to learn is to take the example above and play with the code. You might break some things, but learning to fix it will only help you to understand better in the end.

The next sections of the tutorial will expand on tables a bit more.

Share This Tutorial

Link To This Tutorial

Tutorial URL


Help Us to Help You

This website and it's tutorials are only made possible with your support. Support money goes towards keeping our servers online.

Link to Us

Spread the word! Let people know about our tutorials by placing links on blogs, websites, forums and other places.


Copyright 2017 Step By Step HTML. All Rights reserved.