GK Question

technology medium mcq

Which CSS property is used to control the spacing between elements' borders?

  1. padding
  2. margin
  3. border-spacing
  4. gap

Answer: margin

Margin creates space outside an element's border, separating it from neighboring elements. Padding creates space inside the border (between content and border). Border-spacing applies to table cells. Gap is used in flexbox/grid layouts. Fundamental CSS concept for web development questions.

Topic Web Technologies
Exam Relevance SSC JE, Banking IT, Railway