Tables
Tables are designed to clearly communicate tabular data. Never use tables for layout. If you want columns but your content isn’t data then use the column or sidebar block instead.
A table using default styles — no alignment, no stripes, flexible columns — with bolded column headings.
Country | Area | Population | GDP | Capital |
Austria | 83,858 | 8,169929 | 339 | Vienna |
Belgium | 30,528 | 11,007,000 | 410 | Brussels |
Denmark | 43,094 | 5,564,219 | 271 | Copenhagen |
France | 547,030 | 66,104,000 | 2,181 | Paris |
Germany | 357,021 | 80,716,000 | 3,032 | Berlin |
Tables can also be set to fixed columns, which will lock the column widths to be even with each other. This table has fixed columns and a striped style.
Country | Area | Population | GDP | Capital |
Austria | 83,858 | 8,169929 | 339 | Vienna |
Belgium | 30,528 | 11,007,000 | 410 | Brussels |
Denmark | 43,094 | 5,564,219 | 271 | Copenhagen |
France | 547,030 | 66,104,000 | 2,181 | Paris |
Germany | 357,021 | 80,716,000 | 3,032 | Berlin |
Tables can be aligned similar to other blocks (none, left, right, center, wide, and full).
Country | Area | Population | GDP | Capital |
Austria | 83,858 | 8,169929 | 339 | Vienna |
Belgium | 30,528 | 11,007,000 | 410 | Brussels |
Denmark | 43,094 | 5,564,219 | 271 | Copenhagen |
France | 547,030 | 66,104,000 | 2,181 | Paris |
Germany | 357,021 | 80,716,000 | 3,032 | Berlin |
Setting a table to align right or left will also set them to “auto” width, so their width will vary based on the table contents.
This table is right aligned with otherwise default styles.
Source
The Tables block is a WordPress-created core block that is built in to WordPress.