Use CSS border-style property To set different border types of HTML Elements.

Follow are the different border types:

dottedSets a dotted border
dashedSets a dashed border
solidSets a solid border
doubleSets a double border
grooveSets a 3D grooved border
ridgeSets a 3D ridged border
insetSets a 3D inset border
outsetSets a 3D outset border
noneSets no border
hiddenSets a hidden border

Dotted Border style example

<html>
<head>
<style>
div{
     border-style: dotted;  
     border-color: black;  
}
</style>
</head>
<body>
<div>
 Dotted Border style example
</div>
</body>
</html>

Dashed Border style example

<html>
<head>
<style>
div{
    border-style: dashed;  
    border-color: black;  
}
</style>
</head>
<body>
<div>
dashed Border style example
</div>
</body>
</html>

Solid Border style example

<html>
<head>
<style>
div{
    border-style: solid;  
    border-color: black;  
}
</style>
</head>
<body>
<div>
solid Border style example
</div>
</body>
</html>

Double Border style example

<html>
<head>
<style>
div{
    border-style: double;  
    border-color: black;  
}
</style>
</head>
<body>
<div>
double Border style example
</div>
</body>
</html>

Groove Border style example

<html>
<head>
<style>
div{
    border-style: groove;  
    border-color: black;  
}
</style>
</head>
<body>
<div>
groove Border style example
</div>
</body>
</html>

Ridge Border style example

<html>
<head>
<style>
div{
    border-style: ridge;  
    border-color: black;  
}
</style>
</head>
<body>
<div>
ridge Border style example
</div>
</body>
</html>

Inset Border style example

<html>
<head>
<style>
div{
    border-style: inset;  
    border-color: black;  
}
</style>
</head>
<body>
<div>
inset Border style example
</div>
</body>
</html>

Outset Border style example

<html>
<head>
<style>
div{
    border-style: outset;  
    border-color: black;  
}
</style>
</head>
<body>
<div>
outset Border style example
</div>
</body>
</html>