HTML <td> colspan Özelliği

❮ HTML <td> etiketi

Örnek

İki sütuna yayılan bir tablo hücresine sahip bir HTML tablosu:

<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>

Tanım ve Kullanım

Nitelik colspan, bir hücrenin kapsaması gereken sütun sayısını tanımlar.


Tarayıcı Desteği

Attribute
colspan Yes Yes Yes Yes Yes

Not: Yalnızca colspan="0"özel bir anlamı olan Firefox'u destekler (aşağıdaki "Özellik Değerleri" tablosuna bakın).


Sözdizimi

<td colspan="number">

Özellik Değerleri

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> etiketi