HTML <th> colspan Özelliği
Örnek
İki sütuna yayılan bir başlık hücresine sahip bir HTML tablosu:
<table>
<tr>
<th colspan="2">Monthly Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</table>
Tanım ve Kullanım
Nitelik colspan
, bir başlık hücresinin 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
<th colspan="number">
Özellik Değerleri
Value | Description |
---|---|
number | Sets the number of columns a header cell should span. Note: colspan="0" tells the browser to span the cell to the last column of the column group (colgroup) |
❮ HTML <th> etiketi