HTML रोस्पैन विशेषता उन पंक्तियों की संख्या को परिभाषित करती है जो किसी तालिका के सेल को HTML दस्तावेज़ में फैलानी चाहिए। इसे केवल td . पर लागू किया जा सकता है या वें HTML तत्व।
सिंटैक्स
निम्नलिखित वाक्य रचना है -
<tagname rowspan=”number”></tagname>
आइए हम HTML Rowpan Attribute का एक उदाहरण देखें -
उदाहरण
<!DOCTYPE html>
<html>
<style>
body {
color: #000;
background: lightblue;
height: 100vh;
text-align: center;
}
table {
margin: 2rem auto;
width: 400px;
}
</style>
<body>
<h1>HTML rowspan Attribute Demo</h1>
<table border="2">
<thead>
<tr>
<th>Name</th>
<th>Language</th>
</tr>
<thead>
<tbody>
<tr>
<td>John</td>
<td>English</td>
</tr>
<tr>
<td rowspan="2">Elon</td>
<td>Germany</td>
</tr>
<tr>
<td>French</td>
</tr>
</tbody>
</table>
</body>
</html> आउटपुट
