<html>
<head>
<style>
#msg {
visibility: hidden;
position: absolute;
left: 0px;
top: 0px;
width:100%;
height:100%;
text-align:center;
}
#msg div {
width:33.3%;
margin: 100px auto;
background-color:#0CF;
border:#000;
padding:thick;
text-align:center;
width:15%;
size:50;
}
</style>
</head>
<body>
<div id="msg"><div>hello</div><a href="#" onClick="display()">Close</a></div>
<a href="#" onclick="display()">click me</a>
</body>
<script>
function display(){
temp=document.getElementById("msg");
temp.style.visibility=(temp.style.visibility=="visible")?"hidden":"visible";
}
</script>
</html>
this unique code was inspired by my research online. I made some modifications to it. Can someone clarify the purpose of using two div tags nested within each other? And what exactly is the distinction between "#msg" and "#msg div"?