1Explain the CSS box model and box-sizing.
Every element is a rectangular box made of four layers, from inside out: content, padding, border and margin.
With the default box-sizing: content-box, width applies only to the content, so padding and border are added on top: a width: 200px box with padding: 10px and border: 1px renders 222px wide. With box-sizing: border-box, width includes padding and border, so the box stays 200px and the content shrinks. Most projects set *, *::before, *::after { box-sizing: border-box; } because sizes become predictable.
Bonus points: vertical margins between block elements collapse (the larger wins), and margins don't collapse inside flex or grid containers.