HTML <td> colspan विशेषता
उदाहरण
एक टेबल सेल के साथ एक HTML टेबल जो दो कॉलम तक फैली हुई है:
<table>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
<tr>
<td colspan="2">Sum: $180</td>
</tr>
</table>
परिभाषा और उपयोग
विशेषता उन colspan
स्तंभों की संख्या को परिभाषित करती है जिन्हें एक सेल को फैलाना चाहिए।
ब्राउज़र समर्थन
Attribute | |||||
---|---|---|---|---|---|
colspan | Yes | Yes | Yes | Yes | Yes |
नोट: केवल Firefox समर्थन करता है colspan="0"
, जिसका एक विशेष अर्थ है ("विशेषता मान" तालिका में नीचे देखें)।
वाक्य - विन्यास
<td colspan="number">
गुण मान
Value | Description |
---|---|
number | Specifies the number of columns a cell should span. Note: colspan="0" tells the browser to span the cell to the last column of the column group (colgroup) |
❮ HTML <td> टैग