Zebra Striped Table Template

Improve data readability with this classic zebra-striped table that highlights each row with an alternating background color.

This simple CSS technique makes it significantly easier for users to scan and follow rows across large datasets, reducing the chance of them losing their place.

Screenshot of an HTML table with alternating light grey and white rows.

Get Source Code → Preview →

About this Table Template

The "Zebra Striped" or "Alternating Rows" table is a fundamental design pattern for presenting tabular data. By applying a subtle background color to every other row, it creates a visual rhythm that guides the user's eye across the page. This template provides a clean, modern, and responsive starting point for any data-heavy content.

Key Features:

Ideal Use Cases:

Dependencies:

None. This template uses only pure HTML and CSS.

Accessibility Notes:

This template uses semantic thead, tbody, and caption elements. Table headers (th) use the scope="col" attribute to programmatically associate them with their respective columns, which is essential for screen reader users.

Code

Here's the full code for the zebra striped table template:

View Output