<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
div{
padding: 10px;
margin-bottom: 10px;
border: 1px solid red;
}
</style>
</head>
<body>
<h1>CSS border 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.border = "5px dashed blue";
}
</script>
<p><strong>Note</strong>: Click on the button to change the 'border'.</p> </body>
</html>