Style HTML table to convey content clearly. You'll need to add class itag_table to the table element. We cannot style the table element directly since some older websites still use table to do their page layout.

For zebra strips on alternating rows, apply the class even and odd on the tr element. If you do not want to do this manually, check out our widget section which automates this with some javascript.


Caption: Sample table: Areas of the Nordic countries, in sq km
Country Total area Land area
Denmark 43,070 42,370
Finland 337,030 305,470
Iceland 103,000 100,250
Norway 324,220 307,860
Sweden 449,964 410,928
<table class="styled"
    summary="each row names a nordic country and specifies its total area and land area, in square kilometers">
    <caption>Caption: Sample table: Areas of the Nordic countries, in sq km</caption>
        <th>Total area</th>
        <th>Land area</th>
    <tr class="even">
    <tr class="odd">
    <tr class="even">
    <tr class="odd">
    <tr class="even">