Tables - Basic Definitions

Overview

Demonstration

Defining a Table

    <table>
    </table>

Naming the Table

    <table>
      <caption>Title of Table</caption>
    </table>

Creating and Naming Columns

    <table>
      <caption>My Table Title</caption>
      <tr>
        <th>Column header 1</th>
        <th>Column header 2</th>
      </tr>
    </table>

Creating columns

  <table>
    <caption>My Table Title</caption>
    <tr>
        <th>Column header 1</th>
        <th>Column header 2</th>
    </tr>
    <tr>
        <td>Data 1</td>
        <td>Data 2</td>
    </tr>
  </table>

Example

    <table>
      <caption>My Table Title</caption>
        <tr>
          <th>Column header 1</th>
          <th>Column header 2</th>
        </tr>
        <tr>
          <td>Data 1</td>
          <td>Data 2</td>
        </tr>
        <tr>
          <td>Data 3</td>
          <td>Data 4</td>
        </tr>
    </table>

Demonstration