Tables
Tables are used to display tabular data in rows and columns.
Default table
Default tables in Rivet come with styled headers and bottom borders on row to help with readability.
Service | Description | URL |
---|---|---|
One.IU | One.IU was created to bring a modern app store experience to finding what you need at IU. With One.IU, you search for what you want to do, and click to launch it. | one.iu.edu |
Box | Box is a no-cost cloud storage and collaboration environment available to students, faculty, and staff. | box.iu.edu |
Zoom | Zoom is a web collaboration tool available to all Indiana University students, faculty, and staff. | zoom.iu.edu |
Canvas | Canvas is a learning management system developed by Instructure, Inc. | canvas.iu.edu |
<table>
<caption class="sr-only">Table example one</caption>
<thead>
<tr>
<th scope="col">Service</th>
<th scope="col">Description</th>
<th scope="col">URL</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">One.IU</th>
<td>One.IU was created to bring a modern app store experience to finding what you need at IU. With One.IU, you search for what you want to do, and click to launch it.</td>
<td><a href="#">one.iu.edu</a></td>
</tr>
<tr>
<th scope="row">Box</th>
<td>Box is a no-cost cloud storage and collaboration environment available to students, faculty, and staff.</td>
<td><a href="#">box.iu.edu</a></td>
</tr>
<tr>
<th scope="row">Zoom</th>
<td>Zoom is a web collaboration tool available to all Indiana University students, faculty, and staff.</td>
<td><a href="#">zoom.iu.edu</a></td>
</tr>
<tr>
<th scope="row">Canvas</th>
<td>Canvas is a learning management system developed by Instructure, Inc.</td>
<td><a href="#">canvas.iu.edu</a></td>
</tr>
</tbody>
</table>
Striped table
You can use the .rvt-table-stripes
class to alternate light gray backgrounds on table rows for improved scannability.
Service | Description | URL |
---|---|---|
One.IU | One.IU was created to bring a modern app store experience to finding what you need at IU. With One.IU, you search for what you want to do, and click to launch it. | one.iu.edu |
Box | Box is a no-cost cloud storage and collaboration environment available to students, faculty, and staff. | box.iu.edu |
Zoom | Zoom is a web collaboration tool available to all Indiana University students, faculty, and staff. | zoom.iu.edu |
Canvas | Canvas is a learning management system developed by Instructure, Inc. | canvas.iu.edu |
<table class="rvt-table-stripes">
<caption class="sr-only">Table example two</caption>
<thead>
<tr>
<th scope="col">Service</th>
<th scope="col">Description</th>
<th scope="col">URL</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">One.IU</th>
<td>One.IU was created to bring a modern app store experience to finding what you need at IU. With One.IU, you search for what you want to do, and click to launch it.</td>
<td><a href="#">one.iu.edu</a></td>
</tr>
<tr>
<th scope="row">Box</th>
<td>Box is a no-cost cloud storage and collaboration environment available to students, faculty, and staff.</td>
<td><a href="#">box.iu.edu</a></td>
</tr>
<tr>
<th scope="row">Zoom</th>
<td>Zoom is a web collaboration tool available to all Indiana University students, faculty, and staff.</td>
<td><a href="#">zoom.iu.edu</a></td>
</tr>
<tr>
<th scope="row">Canvas</th>
<td>Canvas is a learning management system developed by Instructure, Inc.</td>
<td><a href="#">canvas.iu.edu</a></td>
</tr>
</tbody>
</table>
Plain table
The .rvt-table-plain
class will remove all borders and thead
formatting on a table.
Service | Description | URL |
---|---|---|
One.IU | One.IU was created to bring a modern app store experience to finding what you need at IU. With One.IU, you search for what you want to do, and click to launch it. | one.iu.edu |
Box | Box is a no-cost cloud storage and collaboration environment available to students, faculty, and staff. | box.iu.edu |
Zoom | Zoom is a web collaboration tool available to all Indiana University students, faculty, and staff. | zoom.iu.edu |
Canvas | Canvas is a learning management system developed by Instructure, Inc. | canvas.iu.edu |
<table class="rvt-table-plain">
<caption class="sr-only">Table example three</caption>
<thead>
<tr>
<th scope="col">Service</th>
<th scope="col">Description</th>
<th scope="col">URL</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">One.IU</th>
<td>One.IU was created to bring a modern app store experience to finding what you need at IU. With One.IU, you search for what you want to do, and click to launch it.</td>
<td><a href="#">one.iu.edu</a></td>
</tr>
<tr>
<th scope="row">Box</th>
<td>Box is a no-cost cloud storage and collaboration environment available to students, faculty, and staff.</td>
<td><a href="#">box.iu.edu</a></td>
</tr>
<tr>
<th scope="row">Zoom</th>
<td>Zoom is a web collaboration tool available to all Indiana University students, faculty, and staff.</td>
<td><a href="#">zoom.iu.edu</a></td>
</tr>
<tr>
<th scope="row">Canvas</th>
<td>Canvas is a learning management system developed by Instructure, Inc.</td>
<td><a href="#">canvas.iu.edu</a></td>
</tr>
</tbody>
</table>
Compact table variant
The .rvt-table-compact
class will decrease the amount of vertical padding applied to each table cell. This variant can be useful in situations where you need to conserve vertical space when displaying large amounts of data.
Service | Description | URL |
---|---|---|
One.IU | One.IU was created to bring a modern app store experience to finding what you need at IU. With One.IU, you search for what you want to do, and click to launch it. | one.iu.edu |
Box | Box is a no-cost cloud storage and collaboration environment available to students, faculty, and staff. | box.iu.edu |
Zoom | Zoom is a web collaboration tool available to all Indiana University students, faculty, and staff. | zoom.iu.edu |
Canvas | Canvas is a learning management system developed by Instructure, Inc. | canvas.iu.edu |
<table class="rvt-table-compact">
<caption class="sr-only">Table example three</caption>
<thead>
<tr>
<th scope="col">Service</th>
<th scope="col">Description</th>
<th scope="col">URL</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">One.IU</th>
<td>One.IU was created to bring a modern app store experience to finding what you need at IU. With One.IU, you search for what you want to do, and click to launch it.</td>
<td><a href="#">one.iu.edu</a></td>
</tr>
<tr>
<th scope="row">Box</th>
<td>Box is a no-cost cloud storage and collaboration environment available to students, faculty, and staff.</td>
<td><a href="#">box.iu.edu</a></td>
</tr>
<tr>
<th scope="row">Zoom</th>
<td>Zoom is a web collaboration tool available to all Indiana University students, faculty, and staff.</td>
<td><a href="#">zoom.iu.edu</a></td>
</tr>
<tr>
<th scope="row">Canvas</th>
<td>Canvas is a learning management system developed by Instructure, Inc.</td>
<td><a href="#">canvas.iu.edu</a></td>
</tr>
</tbody>
</table>
Cells table variant
The “cells” table variant adds borders to all table cells which can help with vertical and horizontal visual scanning.
Service | Description | URL |
---|---|---|
One.IU | One.IU was created to bring a modern app store experience to finding what you need at IU. With One.IU, you search for what you want to do, and click to launch it. | one.iu.edu |
Box | Box is a no-cost cloud storage and collaboration environment available to students, faculty, and staff. | box.iu.edu |
Zoom | Zoom is a web collaboration tool available to all Indiana University students, faculty, and staff. | zoom.iu.edu |
Canvas | Canvas is a learning management system developed by Instructure, Inc. | canvas.iu.edu |
<table class="rvt-table-cells">
<caption class="sr-only">Table example three</caption>
<thead>
<tr>
<th scope="col">Service</th>
<th scope="col">Description</th>
<th scope="col">URL</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">One.IU</th>
<td>One.IU was created to bring a modern app store experience to finding what you need at IU. With One.IU, you search for what you want to do, and click to launch it.</td>
<td><a href="#">one.iu.edu</a></td>
</tr>
<tr>
<th scope="row">Box</th>
<td>Box is a no-cost cloud storage and collaboration environment available to students, faculty, and staff.</td>
<td><a href="#">box.iu.edu</a></td>
</tr>
<tr>
<th scope="row">Zoom</th>
<td>Zoom is a web collaboration tool available to all Indiana University students, faculty, and staff.</td>
<td><a href="#">zoom.iu.edu</a></td>
</tr>
<tr>
<th scope="row">Canvas</th>
<td>Canvas is a learning management system developed by Instructure, Inc.</td>
<td><a href="#">canvas.iu.edu</a></td>
</tr>
</tbody>
</table>
When to use
If you’re wrangling a lot of data, tables can help you visualize that content. They’re much easier to scan than long paragraphs cluttered with numbers or dates.
When to consider something else
- Consider using a definition list when your data only has two dimensions.
- Don’t use tables to structure web pages
Microcopy notes
- Keep labels short. For best scannability, use just two to three words.
- Limit the data or information in each cell. Make repetitive information, like the properties of the data, part of the label.
- Sort the information or data logically, using alphabetical or numerical order
Accessibility notes
- Use a
<caption>
tag inside of the<table>
body when you need to add a title to a table. - When using multiple levels of headers (
<th>
) in a table each header cell should also have ascope="col"
orscope="row"
attribute.
On this page