border

The line drawn around an element's padding, with its own width, style and colour.

In more detail

Border width counts toward an element's size under content-box sizing. Changing a border's colour only needs a repaint, but changing its width needs layout.

Related terms

Taught in

References