HTML <th> colspan विशेषता
उदाहरण
हेडर सेल वाली एक HTML तालिका जो दो स्तंभों तक फैली हुई है:
<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>
परिभाषा और उपयोग
विशेषता कॉलम की colspan
संख्या को परिभाषित करती है जो एक हेडर सेल को फैलाना चाहिए।
ब्राउज़र समर्थन
Attribute | |||||
---|---|---|---|---|---|
colspan | Yes | Yes | Yes | Yes | Yes |
नोट: केवल Firefox समर्थन करता है colspan="0"
, जिसका एक विशेष अर्थ है ("विशेषता मान" तालिका में नीचे देखें)।
वाक्य - विन्यास
<th colspan="number">
गुण मान
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) |
एचटीएमएल <वें> टैग