Demo of Table with inverse style in Bootstrap 4

Inverse Table: White Font with Dark background (Bootstrap 4 Alpha)

IDNameClassMark
1JohnFour52
2AlexThree85
3RohnSix55
<table class='table table-inverse'>
<thead><tr><th>ID</th><th>Name</th><th>Class</th><th>Mark</th></tr> </thead>
  <tbody>
<tr><td>1</td><td>John</td><td>Four</td><td>52</td></tr>
<tr><td>2</td><td>Alex</td><td>Three</td><td>85</td></tr>
<tr><td>3</td><td>Rohn</td><td>Six</td><td>55</td></tr>
</tbody>
</table>

Head inverse

To the base class table we can add only head inverse class like this.
<thead class='thead-inverse'>
IDNameClassMark
1JohnFour52
2AlexThree85
3RohnSix55
<table class='table thead-inverse'>
<thead><tr><th>ID</th><th>Name</th><th>Class</th><th>Mark</th></tr> </thead>
  <tbody>
<tr><td>1</td><td>John</td><td>Four</td><td>52</td></tr>
<tr><td>2</td><td>Alex</td><td>Three</td><td>85</td></tr>
<tr><td>3</td><td>Rohn</td><td>Six</td><td>55</td></tr>
</tbody>
</table>

Bordered inverse table

IDNameClassMark
1JohnFour52
2AlexThree85
3RohnSix55
<table class='table table-bordered table-inverse'>
<thead><tr><th>ID</th><th>Name</th><th>Class</th><th>Mark</th></tr> </thead>
  <tbody>
<tr><td>1</td><td>John</td><td>Four</td><td>52</td></tr>
<tr><td>2</td><td>Alex</td><td>Three</td><td>85</td></tr>
<tr><td>3</td><td>Rohn</td><td>Six</td><td>55</td></tr>
</tbody>
</table>

Hoverable rows

IDNameClassMark
1JohnFour52
2AlexThree85
3RohnSix55
<table class='table table-hover table-inverse'>
<thead><tr><th>ID</th><th>Name</th><th>Class</th><th>Mark</th></tr> </thead>
  <tbody>
<tr><td>1</td><td>John</td><td>Four</td><td>52</td></tr>
<tr><td>2</td><td>Alex</td><td>Three</td><td>85</td></tr>
<tr><td>3</td><td>Rohn</td><td>Six</td><td>55</td></tr>
</tbody>
</table>

Compact or small table

IDNameClassMark
1JohnFour52
2AlexThree85
3RohnSix55
<table class='table table-sm table-inverse'>
<thead><tr><th>ID</th><th>Name</th><th>Class</th><th>Mark</th></tr> </thead>
  <tbody>
<tr><td>1</td><td>John</td><td>Four</td><td>52</td></tr>
<tr><td>2</td><td>Alex</td><td>Three</td><td>85</td></tr>
<tr><td>3</td><td>Rohn</td><td>Six</td><td>55</td></tr>
</tbody>
</table>

Adding contextual Classes to inverse table

IDNameClass StyleClassMark
1JohnFour52
2Alex class='bg-primary'Three85
3RohnSix55
4Reddyclass='bg-info'Three59
5SonyFour55
6Ram class='bg-success'Five64
7PreLeSix75
8Robin class='bg-warning'Seven52
9Lee Seven72
10Roth class='bg-danger'three62