CSS Border Style
CSS border style is used to assign different predefined border style.It has the following values: none, hidden, solid, dashed, dotted, double, inset, outset, groove, and ridge.
CSS Border Style Description
-
dotted
- It defines a dotted border around the element's border.
-
dashed
- It defines a dashed border around the element's border.
-
solid
- It defines a solid border around the element's border.
-
ridge
- It defines a 3D ridged border around the element's border.
-
double
- It defines a double border around the element's border.
-
groove
- It defines a 3D grooved border around the element's border.
-
inset
- It defines a 3D inset border around the element's border.
-
hidden
- It defines a hidden border around the element's border.
-
outset
- It defines a 3D outset border around the element's border.
-
none
- It defines no border around the element's border.
Note: The CSS border property is used to define the border
of the HTML element that exists between the margin
and padding
of the HTML element. Basically, it is used to set the border width
, style
, and color
.