उदाहरण
outlineStyle प्रॉपर्टी से आउटलाइन की शैली सेट करें (बॉर्डर के विपरीत, आउटलाइन लेआउट प्रभावित नहीं करता)।
<!DOCTYPE html>
<html>
<head>
<style>
#box {
width: 450px;
background-color: orange;
border: 3px solid red;
margin-left: 20px;
}
</style>
</head>
<body>
<p>आउटलाइन शैली जोड़ने के लिए नीचे क्लिक करें।</p>
<div id="box">
<p>यह एक डिव है। यह एक डिव है। यह एक डिव है। यह एक डिव है। यह एक डिव है।</p>
<p>यह एक डिव है। यह एक डिव है। यह एक डिव है। यह एक डिव है। यह एक डिव है।</p>
<p>यह एक डिव है। यह एक डिव है। यह एक डिव है। यह एक डिव है। यह एक डिव है।</p>
</div>
<br>
<button type="button" onclick="display()">आउटलाइन शैली सेट करें</button>
<br>
<script>
function display() {
document.getElementById("box").style.outlineColor = "#5F5F5F";
document.getElementById("box").style.outlineStyle = "solid";
}
</script>
</body>
</html>
मान: none, solid, dotted, dashed, double, groove, ridge, inset, outset।