CSS Border is a property in Cascading Style Sheets (CSS) used to define the space around an element’s content and padding. It sets the border’s width, style, and color.
Syntax:
css
border: [width] [style] [color];
Example:
css
border: 2px solid red;
Common Border Styles:
- solid: Single solid line.
- dashed: Dashed line.
- dotted: Dotted line.
- none: No border.
You can also customize each side with specific properties like border-top, border-right, etc.