---
title: "Add a table to a page"
slug: "add-a-table-to-a-page"
abstract: "Add a table to a page with the rich text editor available in Rich Text components."
---
# Add a table to a page

With Page builder, you can add a table in a Rich Text component.

> [!note]
> To enable the latest rich text editing capabilities, such as adding a table to a Rich Text component, a developer needs to upgrade your environment to JSS 21.5.2 or [later](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-headless-development/upgrade-jss-21-5-next-js-apps-to-version-21-6.html), and you need to add `PAGES_ENABLE_NEW_RTE_EDITOR` as a new [environment variable](https://doc.sitecore.com/xmc/en/developers/xm-cloud/en/manage-environment-variables-in-the-deploy-app.html) in the Deploy app.

To add a table to a webpage:

1. In Page builder **Editor** mode, in the **Site tree**, click the page you want to add a table to.
2. On the **Components** tab, click on a **Rich Text** component and drag it to the canvas of the webpage.
3. Click in the component to make the text editor toolbar appear, then click **Insert table** ![insert_table.jpg](https://doc.sitecore.com/api/markdown-image/sai/en/users/sitecoreai/images/insert_table.jpg).
4. Drag the cursor over the template table to highlight the number of rows and columns that you want.
5. Use the table toolbar to perform additional formatting of the table.

The configuration settings available for tables are:

- Add header column and rows.
- Insert, delete, or select a column or a row.
- Merge or split cells.
- Edit cell properties like borders, background, dimensions, and text alignment.
- Edit table properties like borders, background, dimensions, and table alignment.