<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>태그</title>
<style>
input[type=checkbox]:checked + div {
height : 0px
}
div {
overflow: hidden;
width: 650px;
height: 300px;
background-color: yellow;
}
span {
display: none;
}
input[type=checkbox]:checked ~ span {
display: inline;
}
</style>
</head>
<body>
<input type="checkbox" />
<div>
<h1>Lorem Ipsum</h1>
<p>
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Voluptates itaque temporibus, consectetur minima nihil quam, maiores repellat illum facilis quae incidunt quis ab, nulla possimus eligendi! Alias nam error voluptas!
</p>
</div>
<span>약관에 동의 하셨습니다.</span>
</body>
</html>