How to set the style of the four borders
The below HTML and CSS code example shows you how to set the style of the four borders.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>this is the title of the web page</title>
<style type="text/css">
</style>
</head>
<body>
<p style="border-style: dotted;">
This paragraph has a dotted border.
</p>
<br />
<p style="border-style: dashed;">
This paragraph has a dashed border.
</p>
<br />
<p style="border-style: solid;">
This paragraph has a solid border.
</p>
<br />
<p style="border-style: double;">
This paragraph has a double border.
</p>
<br />
<p style="border-style: groove;">
This paragraph has a groove border.
</p>
<br />
<p style="border-style: ridge;">
This paragraph has a ridge border.
</p>
<br />
<p style="border-style: inset;">
This paragraph has an inset border.
</p>
<br />
<p style="border-style: outset;">
This paragraph has an outset border.
</p>
</body>
</html>
The above HTML and CSS code makes the paragraph below.
This paragraph has a dotted border.
This paragraph has a dashed border.
This paragraph has a solid border.
This paragraph has a double border.
This paragraph has a groove border.
This paragraph has a ridge border.
This paragraph has an inset border.
This paragraph has an outset border.
Use the text editor below to practice setting the styles of the four borders.