<table> <thead> <tr> <td>Name</td> <td>Gender</td> <td>Age</td> </tr> </thead> <tbody> <tr> <td>David</td> <td>Male</td> <td>23</td> </tr> <tr> <td>Jessica</td> <td>Female</td> <td>47</td> </tr> <tr> <td>Warren</td> <td>Male</td> <td>12</td> </tr> </tbody> </table>
table {
border-collapse: collapse;
font-family: Tahoma, Geneva, sans-serif;
}
table td {
padding: 15px;
}
table thead td {
background-color: #54585d;
color: #ffffff;
font-weight: bold;
font-size: 13px;
border: 1px solid #54585d;
}
table tbody td {
color: #636363;
border: 1px solid #dddfe1;
}
table tbody tr {
background-color: #f9fafb;
}
table tbody tr:nth-child(odd) {
background-color: #ffffff;
}Nothing to show yetType HTML, CSS or JavaScript and your page appears here.
Click any element to find its code Esc
Check this code before you run it
It came from a shared link. It runs with fewer permissions, so it cannot open pop-ups, submit forms or start downloads.
0.00s / 0.00s
Nothing has animated yet. Hover, click or type in the preview and each CSS animation, transition or
element.animate() call shows up here as it plays.