Border Basics
The border shorthand and its longhand properties control the line drawn around an element's padding box. Borders sit between padding and margin in the CSS box model.
The Three Core Properties
border-width— thickness (px, em, or keywords: thin/medium/thick)border-style— appearance:solid,dashed,dotted,double,groove,ridge,inset,outset,none,hiddenborder-color— any CSS colour; defaults tocurrentColor
Shorthand
border: [width] [style] [color]. All three values are optional but style must be present for the border to appear.