HTML रोस्पैन विशेषता
परिभाषा और उपयोग
विशेषता उन rowspan
पंक्तियों की संख्या निर्दिष्ट करती है जो एक सेल को फैलनी चाहिए।
पर लागू होता है
विशेषता का rowspan
उपयोग निम्नलिखित तत्वों पर किया जा सकता है:
तत्वों | गुण |
---|---|
<टीडी> | रोस्पेन |
<वें> | रोस्पेन |
उदाहरण
टीडी उदाहरण
एक टेबल सेल के साथ एक HTML टेबल जो दो पंक्तियों तक फैली हुई है:
<table>
<tr>
<th>Month</th>
<th>Savings</th>
<th>Savings for holiday!</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
<td rowspan="2">$50</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</table>
गु उदाहरण
हेडर सेल वाली एक HTML तालिका जो तीन पंक्तियों तक फैली हुई है:
<table>
<tr>
<th>Month</th>
<th>Savings</th>
<th rowspan="3">Savings for holiday!</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</table>
ब्राउज़र समर्थन
विशेषता में rowspan
प्रत्येक तत्व के लिए निम्नलिखित ब्राउज़र समर्थन है:
Element | |||||
---|---|---|---|---|---|
td | Yes | Yes | Yes | Yes | Yes |
th | Yes | Yes | Yes | Yes | Yes |