HTML <col> span kenmerk
Voorbeeld
Hier moet die eerste twee kolomme 'n agtergrondkleur van rooi hê:
<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>
Definisie en gebruik
Die
span
kenmerk definieer die aantal kolomme wat 'n
<col>
element moet strek.
Blaaierondersteuning
Attribute | |||||
---|---|---|---|---|---|
span | Yes | Yes | Yes | Yes | Yes |
Sintaksis
<col span="number">
Eienskapwaardes
Value | Description |
---|---|
number | Sets the number of columns a <col> element should span |
❮ HTML <col> tag