xxxxxxxxxx
<html>
<head>
<style>
/* Default styling */
td {
background-color: black;
color: white;
font-family: arial;
padding: 0.3rem;
}
/* 1st Column */
td:nth-child(1) {
background-color: red;
color: blue;
}
/* 3rd Column */
td:nth-child(3) {
background-color: blue;
color: orange;
}
</style>
</head>
<body>
<h1>Styling Columns using CSS nth-child</h1>
<table>
<tbody>
<tr>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
</tr>