Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions HTML/table.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Table</title>
<style>
table {
border-collapse: collapse; /* Ensures borders are collapsed */
border-width: 5px;
border-style: solid;
border-radius: 10px;
}

th, td {
border-width: 3px;
border-style: solid; /* Ensure borders for th and td */
padding: 8px; /* Adds space inside cells */
}

tr {
border-width: 3px;
border-style: dotted; /* You can leave this as is, though it's not necessary for visible borders */
}

thead th {
border-width: 3px;
border-style: solid;
}
</style>
</head>
<body>

<table>
<caption>Name of Person</caption>
<thead>
<tr>
<th colspan="2">NAME</th>
<th>CITY</th>
</tr>
</thead>

<tbody>
<tr>
<td>Dhruv</td>
<td>Patel</td>
<td>Ahemdabad</td>
</tr>

<tr>
<td>Yashu</td>
<td>Ranparia</td>
<td>Anand</td>
</tr>
</tbody>

<tfoot>
<tr >
<td colspan="2">
2 person
</td>
<td>
2 address
</td>
</tr>


</tfoot>
</table>

</body>
</html>