טבלאות

אז איך מוסיפים טבלה ב html:
פתיחת וסגירת תחום טבלה = table
פתיחת וסגירת תחום שורה= tr
פתיחת וסגירת תחום טבלה = td
דוגמא:

<table>
  <tr>
    <td>row 1, cell 1</td>
    <td>row 1, cell 2</td>
  </tr>
  <tr>
    <td>row 2, cell 1</td>
    <td>row 2, cell 2</td>
  </tr>
</table>

זה יראה כך:

row 1, cell 1 row 1, cell 2
row 2, cell 1 row 2, cell 2

אז איך מוסיפים טבלה עם כותרות ב html:

<table border="1">
  <tr>
    <th>Header 1</th>
    <th>Header 2</th>
  </tr>
  <tr>
    <td>row 1, cell 1</td>
    <td>row 1, cell 2</td>
  </tr>
  <tr>
    <td>row 2, cell 1</td>
    <td>row 2, cell 2</td>
  </tr>
</table>

זה יראה כך:

Header 1 Header 2
row 1, cell 1 row 1, cell 2
row 2, cell 1 row 2, cell 2