<html>
<head>
<style>
div {
box-sizing: border-box;
padding: 16px;
width: 100%;
background-color: red;
color: #fff;
}
.closebtn {
float: right;
font-size: 30px;
font-weight: bold;
cursor: pointer;
}
.closebtn:hover {
color: #000;
}
</style>
</head>
<body>
<div>
<span onclick="this.parentElement.style.display = 'none';" class="closebtn">×</span>
<p>To close this container, click on the X symbol to the right.</p>
</div>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_node_parentelement_hide by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 05 Sep 2022 15:18:58 GMT -->
</html>