CSS

Box-model

Difference between content-box and border-box

Content-box (default) Border-box
Defines the height and width of the content only. Defines the combined height and width of content+padding+border.
The padding and border takes addtional space beyond that of content. The padding and border makea the content adjust according to space required by them.

Block element vs Inline element

Block Elements Inline Elements
Takes the full width available in its parent element. Takes only the space required by content inside it.
Always start from a new line. Starts from the same line it space is available, and start from new one if current line is exhausted.
Forces any element after it to start from another new line. Dosen't force it neighbours.
Height/Width/Padding/Margin/etc... are applicable always. Height/Width have no effect and Padding/Margin only works on horizontal axis (left and right).
Both of them are convertible to each other via css property (display:block or display:inline)

My Advice

Best of both (block and inline) is found when you use property like (display:inline-block)