CSS Tables caption-side


Example

The caption-side property determines the vertical positioning of the <caption> element within a table. This has no effect if such element does not exist.

Below an example with two tables with different values set to the caption-side property:

enter image description here

The table on the left has caption-side: top while the one on the right has caption-side: bottom.

ValueDescription
topThis is the default value. It places the caption above the table.
bottomThis value places the caption below the table.