एचटीएमएल <col> अवधि विशेषता
उदाहरण
यहां, पहले दो स्तंभों की पृष्ठभूमि का रंग लाल होना चाहिए:
<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>
परिभाषा और उपयोग
विशेषता उन
span
स्तंभों की संख्या को परिभाषित करती है जिन्हें एक
<col>
तत्व को फैलाना चाहिए।
ब्राउज़र समर्थन
Attribute | |||||
---|---|---|---|---|---|
span | Yes | Yes | Yes | Yes | Yes |
वाक्य - विन्यास
<col span="number">
गुण मान
Value | Description |
---|---|
number | Sets the number of columns a <col> element should span |
❮ एचटीएमएल <col> टैग