Border style attributes (border-style)
This attribute is used to set the style of the top, bottom, and left borders. Its value is as follows:
None (no border, no matter how large the Border width is)
Dotted (Dot-line Border)
Dashed (broken line Border)
Solid (straight-line Border)
Double (double-line Border)
Groove (groove Border)
Ridge (spine Border)
Inset (border with embedded effects)
Outset (border of the protruding effect)
Example: Examples of CSS border style attributes using none, dotted, dashed, solid, double, groove, ridge, inset, and outset
<HTML>
<Head>
<Title> border style attribute border-style </title>
<Style type = "text/CSS">
. D1 {border-style: none ;}
. D2 {border-style: solid ;}
. D3 {border-style: dotted ;}
. D4 {border-style: dashed ;}
. D5 {border-style: Double ;}
. D6 {border-style: Groove ;}
. D7 {border-style: Ridge ;}
. D8 {border-style: inset ;}
. D9 {border-style: outset ;}
</Style>
</Head>
<Body>
<Div> the default value of the CSS border style (border-style) attribute of this div is none. </Div>
<Br>
<Div class = "d1"> the CSS border style (border-style) attribute of this div is none. </Div>
<Br>
<Div class = "D2"> the CSS border style (border-style) attribute of this div is solid. </Div>
<Br>
<Div class = "D3"> the CSS border style (border-style) attribute of this div is dotted. </Div>
<Br>
<Div class = "D4"> the CSS border style (border-style) attribute of this div is dashed. </Div>
<Br>
<Div class = "D5"> the CSS border style (border-style) attribute of this div is double. </Div>
<Br>
<Div class = "D6"> the CSS border style (border-style) attribute of this div is groove. </Div>
<Br>
<Div class = "D7"> the CSS border style (border-style) attribute of this div is Ridge. </Div>
<Br>
<Div class = "D8"> the CSS border style (border-style) attribute of this div is inset. </Div>
<Br>
<Div class = "D9"> the CSS border style (border-style) attribute of this div is outset. </Div>
<Br>
</Body>
</Html>
The default value of the CSS border style (border-style) attribute of this div is none.
The CSS border style (border-style) attribute of this div is none.
The CSS border style (border-style) attribute of this div is solid. Straight-line Border
The CSS border style (border-style) attribute of this div is dotted. Dotted border
The CSS border style (border-style) attribute of this div is dashed. Broken Line border
The CSS border style (border-style) attribute of this div is double. Double-line Border
The CSS border style (border-style) attribute of this div is groove. Groove border
The CSS border style (border-style) attribute of this div is Ridge. Backbone border
The CSS border style (border-style) attribute of this div is inset. Embedded Effect
The CSS border style (border-style) attribute of this div is outset. Protruding Effect