<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
div{
padding: 10px;
margin-bottom: 10px;
outline-style: dashed;
}
</style>
</head>
<body>
<h1>CSS outline-color Property</h1>
<div>
This is div container.
</div>
<button onclick="myFunction()">Click Me</button>
<script>
var x = document.getElementsByTagName("div")[0];
function myFunction(){
x.style.outlineColor = "red";
}
</script>
<p><strong>Note</strong>: Click on the button to change the 'outline-color' from black (default) to red.</p> </body>
</html>