The caption-side
property in
caption-side: top|bottom|initial|inherit;
top
: This places the caption above the table.
bottom
: This places the caption below the table.
initial
: This sets the value to its default value.
inherit
: This inherits property from its parent value.
The following is the basic
In this example we have made a table that contains the details of an employee. We set the caption to be placed at the top so we can see that the caption is placed at the top. We can also place the caption at the bottom of the table instead of placing it at the top.