HTML <td> colspan- kenmerk

❮ HTML <td>-merker

Voorbeeld

'n HTML-tabel met 'n tabelsel wat oor twee kolomme strek:

<table>
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
  </tr>
  <tr>
    <td>February</td>
    <td>$80</td>
  </tr>
  <tr>
    <td colspan="2">Sum: $180</td>
  </tr>
</table>

Definisie en gebruik

Die colspankenmerk definieer die aantal kolomme wat 'n sel moet strek.


Blaaierondersteuning

Attribute
colspan Yes Yes Yes Yes Yes

Let wel: Slegs Firefox ondersteun colspan="0", wat 'n spesiale betekenis het (kyk hieronder in die "Kenmerkwaardes"-tabel).


Sintaksis

<td colspan="number">

Eienskapwaardes

Value Description
number Specifies the number of columns a cell should span. Note: colspan="0" tells the browser to span the cell to the last column of the column group (colgroup)

❮ HTML <td>-merker