<!DOCTYPE html>
<html>
<head>
<style>
#myDIV {
margin-top: 20px;
inline-size: 70%;
block-size: 200px;
background-color: lightgreen;
border-block: 1px solid black;
}
</style>
</head>
<body>
<h1>Change border-block with JavaScript</h1>
<p>Click the "Try it" button to change the border-block property of the DIV element:</p>
<button onclick="myFunction()">Try it</button>
<div id="myDIV">
<h1>Hello</h1>
</div>
<script>
function myFunction() {
document.getElementById("myDIV").style.borderBlock = "dashed hotpink 10px";
}
</script>
</body>
</html>