<caption>A summary of top sites with both paid and free course</caption>
      <th class="primary" scope="col">Websites</th>
      <th scope="col">Certification</th>
      <th scope="col">Tuition</th>
      <th scope="col">Top Courses</th>
      <th scope="row">Freecode Camp</th>
      <td>Web Development and Design</td>
      <th scope="row">Udemy</th>
      <td>Python and Machine Learning</td>
      <th scope="row">Coursera</th>
      <td>Free and Paid</td>
      <td>IoT and AI</td>
      <th>Total Courses</th>
      <td colspan="4"><i>What are you waiting for? Get Started now for free</i></td>
table {
  text-align: left;
  position: relative;
  border-collapse: collapse; 
  background-color: #f6f6f6;
}/* Spacing */
td, th {
  border: 1px solid #999;
  padding: 20px;
th {
  background: brown;
  color: white;
  border-radius: 0;
  position: sticky;
  top: 0;
  padding: 10px;
  background-color: #000000

tfoot > tr  {
  background: black;
  color: white;
tbody > tr:hover {
  background-color: #ffc107;

Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.