![]() |
Definition and Usage
The Applies to
The
Browser Support
The
|
Example:
HTML
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td { border: 1px solid black;
}
</style>
</head>
<body>
<h1>The td rowspan attribute</h1>
<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>
</body>
</html>
Example:
HTML
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td { border: 1px solid black;
}
</style>
</head>
<body>
<h1>The th rowspan attribute</h1>
<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>
</body>
</html
html rowspan attribute |
How to add An HTML table with a table cell that spans two rows - HTML rowspan Attribute | HTML Attribute |
How to add An HTML table with a header cell that spans three rows - HTML rowspan Attribute | HTML Attribute |
Type
: |
Develop |
Category
: |
Web Tutorial |
Sub Category
: |
HTML Attribute |
Uploaded by
: |
Admin |
Read Article https://horje.com/learn/1434/reference