Tables
Tables are designed to display data, making complex information easier to understand and review. The Rich Text Editor component facilitates the creation of these tables. Tables are easy for screen readers to read if you follow below guidelines to make them accessible.
| This is the header, column 1 | This is the header, column 2 |
|---|---|
| Row 1 | Row 1 |
| Row 2 | Row 2 |
| Row 3 | Row 3 |
Footnote
See rich text editor on how to add a footnote in the table.
Best practice
Do
Tables are an effective method for organizing data into rows and columns.
| Köpoption | Säljoption | |
|---|---|---|
| Innehavare | Rättigheten att köpa aktier till ett bestämt pris. Betalar premie. | Rättigheten att sälja aktier till ett bestämt pris. Betalar premie. |
| Utfärdare | Skyldighet att sälja aktier till ett bestämt pris. Erhåller premie. | Skyldighet att köpa aktier till ett bestämt pris. Erhåller premie. |
Don't
Avoid using tables solely for layout purposes.
| Köpoption | Säljoption |
|---|---|
| En köpoption ger innehavaren rättigheten att köpa aktien. | Innehavaren har rätten att sälja aktien. |
| Utfärdaren däremot har skyldigheten att sälja aktien om innehavaren önskar det. | Utfärdaren har skyldigheten att köpa varan till lösenpris om så innehavaren önskar. |
| Priset för en option kallas premie: Innehavaren betalar en premie, utfärdaren erhåller en premie. | Priset för optionen kallas premie. Innehavaren betalar en premie, utfärdaren erhåller en premie. |
| Date | Event | Room |
|---|---|---|
| January 25 | Company event | Seagull |
| February 17 | Weekly allowance day | Big hall |
| March 24 | Shareholders meeting | Eagle |
| Date | January 25 | February 17 | March 24 |
|---|---|---|---|
| Event | Company event | Weekly allowance day | Shareholder meeting |
| Room | Seagull | Big hall | Eagle |
| 2024 | 2023 | 2022 | |
|---|---|---|---|
| Apples | 122 | 109 | 89 |
| Oranges | 111 | 96 | 98 |
| Bannans | 67 | 59 | 77 |
Example 1
Avoid using tables unless they significantly enhance clarity beyond regular text.
Do
Alvesta
Fabriksgatan 3
Dalby
Pumpvägen 1
Borås
Getängsvägen 2
Fagersta
Virsbovägen 8
Båstad
Hallandsvägen 45
Gävle
Södra Skeppsbron 15
- Alvesta - Fabriksgatan 3
- Borås - Getängsvägen 2
- Båstad - Hallandsvägen 45
- Dalby - Pumpvägen 1
- Fagersta - Virsbovägen 8
- Gävle - Södra Skeppsbron 15
Don't
| Town | Street |
|---|---|
| Alvesta | Fabriksgatan 3 |
| Borås | Getängsvägen 2 |
| Båstad | Hallandsvägen 45 |
| Dalby | Pumpvägen 1 |
| Fagersta | Virsbovägen 8 |
| Gävle | Södra Skeppsbron 15 |
Example 2
Longer texts are easier to read without a table, benefiting all readers.
Do
Don't
Tables should always have a column header, row header or both. Make sure that the table header is logical and clear.
Do
- Instead of adding the previous column header, it has been incorporated as a caption.
- Row headers provide clearer distinctions compared to column headers.
| Visiting address | Kasarmikatu 25 |
|---|---|
| Postal address | PB 1107, FIN-00101 Helsinki |
| Phone | +358 20 74 69 100 |
| Swift | SWEDFIHH |
Don't
- Having header only in the first column is not logical.
- The entire table pertains to contact information, not solely the first column.
| Contact information | |
|---|---|
| Visiting address | Kasarmikatu 25 |
| Postal address | PB 1107, FIN-00101 Helsinki |
| Phone | +358 20 74 69 100 |
| Swift | SWEDFIHH |
Screen readers often repeat the same table header multiple times as the user navigates around the table. Therefore, it is important that table headers are short and concise.
Do
- Make sure to use the shortest possible table headers.
Foreign exchange fee for overseas transactions | 1,65 % | 1,65 % | 1,65 % |
|---|
Don't
- Long, repetitive headers are time-consuming for the user.
| Foreign exchange surcharge for withdrawals and purchases abroad | 1,65 % | 1,65 % | 1,65 % |
|---|
Make sure that columns and rows clearly relate to each other.
Do
| Market | Cost |
|---|---|
| Stockholm, Copenhagen, Helsinki (without order depth) | 10 SEK/30 days |
| Stockholm, Copenhagen, Helsinki (with order depth) | 50 SEK/30 days |
| USA (without order depth) | 15 SEK/30 days |
| Options and futures | 10 SEK/30 days |
Don't
| Basic services | Add-on services |
|---|---|
e-accounting standard Contains all the functions that most companies need in their accounting software, as well as the unique auto-posting function. | e-accounting Auto tick off Suitable for associations or those who send many invoices. Invoices are given an OCR number and are automatically ticked off when they are paid. |
e-accounting sole proprietorship Contains the functions that a small company needs in its accounting program as well as the unique auto-posting function. | e-day end Book the daily cash in a form, fill in what is on the cash receipt and get a ready voucher to book. |
Invoicing with accounts receivable When the company invoices, the information is entered in the bookkeeping, and when the invoices are paid, the payment is ticked off in the accounts receivable ledger. |
It is often better to split a complex table into several smaller tables. This approach makes it easier to understand and analyze the data.
Do
Fees capital insurance
| Amount/fee | Fixed fee | Variable fee |
|---|---|---|
| 500 000-1 000 000 kr | 0 kr | 0,40 % |
| 1 000 000-5 000 000 kr | 0 kr | 0,20 % |
| Över 5 000 000 kr | 0 kr | 0,10 % |
| Amount/fee | Fixed fee | Variable fee |
|---|---|---|
| 0-500 000 kr | 120 kr | 0,40% |
| 500 000-1 000 000 kr | 0 kr | 0,40% |
| 1 000 000-5 000 000 kr | 0 kr | 0,20% |
| Över 5 000 000 kr | 0 kr | 0,10% |
Don't
| Deposit insurance | Fixed fee | Variable fee |
|---|---|---|
| 500 000-1 000 000 kr | 0 kr | 0,40 % |
| 1 000 000-5 000 000 kr | 0 kr | 0,20 % |
| Över 5 000 000 kr | 0 kr | 0,10 % |
| Fund insurance | Fixed fee | Variable fee |
| 0-500 000 kr | 120 kr | 0,40% |
| 500 000-1 000 000 kr | 0 kr | 0,40% |
| 1 000 000-5 000 000 kr | 0 kr | 0,20% |
| Över 5 000 000 kr | 0 kr | 0,10% |
A caption is a short description of the table, like a heading for the entire table.
- Always use a caption if there is more than one table on the same page.
- Captions help screen reader users distinguish one table from another.
| This is the header, column 1 | This is the header, column 2 |
|---|---|
| Row 1 | Row 1 |
| Row 2 | Row 2 |
| Row 3 | Row 3 |
Example 1
In this example both column headings and row headings are used, as it is relevant to read the table either row by row or column by column.
How many apples were sold in the last three years?
- As the user moves down in the first column, the screen reader reads out the heading "Apples."
- When the user moves to the right in the row, the screen reader reads out: "2024, 122. 2023, 109. 2022, 89."
How much fruit was sold in 2023?
- The user moves to the right in the first row, and the screen reader reads out "2024" and then "2023."
- The user moves down in the column, and the screen reader reads "Apples, 109. Oranges, 96. Bananas, 59."
| 2024 | 2023 | 2022 | |
|---|---|---|---|
| Apples | 122 | 109 | 89 |
| Oranges | 111 | 96 | 98 |
| Bannans | 67 | 59 | 77 |
Example 2
In this example both column headings and row headings are used, as it is relevant to read the table either row by row or column by column.
If the user reads the table row by row:
- The screen reader reads out the row header once per row.
- The column header is not repeated when the user moves to the next cell.
- The screen reader reads out the column header for each column.
If the user reads column by column:
- The screen reader reads out the column header once per column.
- The header is not repeated when the user moves to the next cell.
- It reads out the row header for each row.
| Debet and credit card Mastercard | Debet and credit card Mastercard Guld | Debet and credit card Mastercard Platinum | |
|---|---|---|---|
| Linked to the bank account | No | No | No |
| By invoice | Yes | Yes | Yes |
| ATM withdrawals in Sweden | 3% of the withdrawn amount (minimum SEK 45 per withdrawal) | 3% of the withdrawn amount (minimum SEK 45 per withdrawal) | 3% of the withdrawn amount (minimum SEK 45 per withdrawal) |
| ATM withdrawals abroad | 3% of the withdrawn amount (minimum SEK 45 per withdrawal) | 3% of the withdrawn amount (minimum SEK 45 per withdrawal) | 3% of the withdrawn amount (minimum SEK 45 per withdrawal) |
Example 3
In this example only column headings are used, since it is probably not relevant to read the table column by column.
- As the user navigates rightward across the header bar, they discover the contents of the table.
- Moving downward in the first column reveals the available areas.
- Once the desired area is identified, the user moves horizontally to gather additional information.
Using row headings in this context remains viable and does not pose any issues.
| Area | Contact person | Address | Phone number |
|---|---|---|---|
| Gnesta | Mattias Christersson | Box 101,646 22 Gnesta | 0158-525 08 |
| Nykvarn | Håkan Blom | Box 33, 155 21 Nykvarn | 08-550 204 26 |
| Sparbanken Rekarne | Katarina Hällström | 631 93 Eskilstuna | 0771-82 70 00 |
| Sörmlands Sparbank | Gerry Wahlqvist | Box 156, 641 30 Katrineholm | 0771-35 03 50 |
Configuration in AEM
Add a Rich Text Editor
Begin by inserting a Rich Text Editor where the table will be constructed.
Insert a table
Within the Rich Text Editor, locate and click on the table button. This action allows you to initiate the creation of a table.
Select table dimensions
A grid will appear enabling you to choose the desired number of columns and rows for your table. Remember, you can always add more rows or columns later if needed.
Choose table header type
Click on the dropdown menu labeled "No Header" to specify the type of header for your table. You have the following options:
- No Header: A simple table without any highlighted header row or column.
- First Row: The first row will be designated as the header row.
- First Column: The first column will be designated as the header column.
- First Row and Column: Both the first row and the first column will serve as headers.
| Date | Event | Room |
|---|---|---|
| January 25 | Company event | Seagull |
| February 17 | Weekly allowance day | Big hall |
| March 24 | Shareholders meeting | Eagle |
| Date | January 25 | February 17 | March 24 |
|---|---|---|---|
| Event | Company event | Weekly allowance day | Shareholder meeting |
| Room | Seagull | Big hall | Eagle |
| 2024 | 2023 | 2022 | |
|---|---|---|---|
| Apples | 122 | 109 | 89 |
| Oranges | 111 | 96 | 98 |
| Bananas | 67 | 59 | 77 |
Caption
A caption is a short description of the table, like a heading for the entire table.
- Always use a caption if there is more than one table on the same page.
- Captions help screen reader users distinguish one table from another.
Once you have configured all the settings, you can begin inserting the desired data into the table. You do this by placing the cursor in the table cells and entering the content.
Click the table icon to update or make changes to the table.
In the table toolbar, you can:
- Add and remove rows and columns
- Merge rows and column
- Delete the entire table
- Edit the table's properties
- Close the toolbar view
In the table's properties you can set the height and width of columns and rows, as well as the width of the entire table. To do this, click on the table icon with the small pen. Then, choose "Cell properties" for individual cells or columns, or "Table properties" for the entire table.
Cell properties
In the cell properties you can change cell width and/or height and cell type (header and data).
You can use fixed values (pixles) or percentages for these settings.
- Percentages allows columns to adapt to the content.
- Fixed values (pixels) can prevent issues with large numbers that might otherwise be split across two rows.
Tip: It's always better to adjust the width of the entire column rather than individual cells, as adjusting specific cells can become very confusing.
Table properties
In the table properties you can add caption, change the table's width and/or height, adjust cell padding and border.
You can use fixed values (pixles) or percentages for these settings.
- Percentages allows columns to adapt to the content.
- Fixed values (pixels) can prevent issues with large numbers that might otherwise be split across two rows.