<html>
<body>
<h1>The Element Object</h1>
<h2>The offsetParent Property</h2>
<div id="myDIV">
<p>My offsetParent is:</p>
<p id="demo"></p>
</div>
<script>
const element = document.getElementById("myDIV");
document.getElementById("demo").innerHTML = element.offsetParent;
</script>
</body>
</html>