Which CSS property determines the amount of space between the borders of adjacent table cells?

Learn web design with our comprehensive test guide. Improve your skills with flashcards and multiple choice questions. Each question includes hints and explanations. Get ready to ace your exam!

Multiple Choice

Which CSS property determines the amount of space between the borders of adjacent table cells?

Explanation:
This question is about how to control the gap between table cell borders. The gap between neighboring cells is set by border-spacing, which adds distance between each cell’s border when borders are kept separate (the default). If you want no gap between borders, you can use border-collapse: collapse on the table so borders are shared. Padding, on the other hand, controls the space inside a single cell between its content and the cell’s border, not the space between cells. Margin would affect outside spacing around the table or the table cell in some cases, not the inter-cell gap. And “cell padding” isn’t a standard CSS property—the term is sometimes used colloquially, but CSS uses padding inside each cell for internal spacing.

This question is about how to control the gap between table cell borders. The gap between neighboring cells is set by border-spacing, which adds distance between each cell’s border when borders are kept separate (the default). If you want no gap between borders, you can use border-collapse: collapse on the table so borders are shared.

Padding, on the other hand, controls the space inside a single cell between its content and the cell’s border, not the space between cells. Margin would affect outside spacing around the table or the table cell in some cases, not the inter-cell gap. And “cell padding” isn’t a standard CSS property—the term is sometimes used colloquially, but CSS uses padding inside each cell for internal spacing.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy