A border is the line surrounding an element’s content and padding. In the CSS box model, it sits inside the margin and outside the padding, helping define the element’s visible box. section 4.2.3 section 4.5
Add a simple border
To give a navigation area a thin black outline, write: nav { border: 1px solid black; } The declaration combines the border width, line style, and color. section 4.2.3
Figure 4.6 The syntax of the border property
Use the border-property syntax diagram to see how a border declaration is assembled. section 4.2.3




