HTML
CSS
JS

Responsive Table with Alternating Color Rows

This is how you can alternate table row colors using CSS property nth-child. This table is also responsive; it allows for horizontal scrolling on mobile devices. You can change the breakpoint by changing the max-width on CSS line 6.

';