This diagram shows the relationship between a table and a caption above it and how they behave in the visual formatting model.
The diagram shows a table (drawn in blue) and a caption (drawn in red) above it.
The table is a 4x4 grid of empty cells surrounded by a labeled margin area. The caption contains a line of (insignificant) text and is surrounded by a labeled margin area. Vertical margins between the boxes collapse.