HTML <col> yayılma Özelliği
Örnek
Burada, ilk iki sütunun arka plan rengi kırmızı olmalıdır:
<table>
<colgroup>
<col span="2" style="background-color:red">
<col style="background-color:yellow">
</colgroup>
<tr>
<th>ISBN</th>
<th>Title</th>
<th>Price</th>
</tr>
<tr>
<td>3476896</td>
<td>My first HTML</td>
<td>$53</td>
</tr>
</table>
Tanım ve Kullanım
Nitelik , bir öğenin kapsaması gereken
span
sütun sayısını tanımlar .
<col>
Tarayıcı Desteği
Attribute | |||||
---|---|---|---|---|---|
span | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
<col span="number">
Özellik Değerleri
Value | Description |
---|---|
number | Sets the number of columns a <col> element should span |
❮ HTML <col> etiketi