<table>
<caption>For practice purpose</caption>
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
<th>Heading 3</th>
</tr>
<tr>
<td>content 1</td>
<td>content 2</td>
<td>content 3</td>
</tr>
</table>
xxxxxxxxxx
table th, tr ,td{
border:1px solid black;
border-collapse:collapse;
background-color: rgb(38, 253, 181);
width:200px;
padding: 10px;
text-align: center;
}
caption
{
font-size: larger;
font-weight: 600;
color: #5151db;
}
td
{
background-color: #b198c7;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.