Beispiel:HTML colspan rowspan.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Zellen verbinden</title>
    <style>
      table, td {border: 1px solid;}
    </style>
  </head>
  <body>
    <h1>Kombination von <code>colspan</code> und <code>rowspan</code></h1>
    <table>
      <tbody>
        <tr><td>1. Spalte</td>                         <td>2. Spalte</td> <td>3. Spalte</td></tr>
        <tr><td rowspan="3" colspan="2">1. Spalte</td>                    <td>3. Spalte</td></tr>
        <tr>                                                              <td>3. Spalte</td></tr>
        <tr>                                                              <td>3. Spalte</td></tr>
        <tr><td>1. Spalte</td>                         <td>2. Spalte</td> <td>3. Spalte</td></tr>
      </tbody>
   </table>
</body>
</html>