Tables allow you to display data in rows and columns. You can create tables on your Open Berkeley site, and you should make sure that any tables you create are accessible to people with disabilities. Use tables for tabular data, not layout (i.e., do not use a table in order to only display images in rows). If you need text and images to align a certain way on a page, anyone with the Site Builder or Widget Editor role can use Layouts and Widgets to achieve this instead.
Tables should be used to display data in rows and columns with proper table headers (column headers, row headers, or both, depending on the data table) as a general best practice and for accessibility.
Simple tables (without any formatting, such as bold/italic/links) can also be added to Open Berkeley sites using the Add Table widget.
Important Notes about Tables
- Avoid nested tables (i.e., a table within another table), as they may have accessibility and performance issues.
- Responsive tables:
- Properly-constructed tables will be "responsive" for optimal display on all devices, including mobile/tablet.
- Add a header row and scope for optimal display (see "Table Headers" and "Header Scope" below for more information).
- Due to the responsive theme, links should not be added to header cells.
- It is not recommended to disable the responsive table functionality (we recommend that non-standard tables be fixed instead to align with best practices for accessibility and responsive design). However, if you need to disable the responsive table functionality, please see Responsive Tables.