I seem to be encountering an error in my codepen and I can't figure out what I'm doing wrong. It appears that I may have misplaced something, but I would greatly appreciate any help or explanation of my mistake.
function on() {
document.getElementById('about').style.display ="block";
}
function off() {
document.getElementById('about').style.display ="none";
}
.about {
display: block;
z-index: 1;
height: 100%;
margin: 0;
padding: 0;
font-family: 'Roboto Slab', serif;
background-color: #ffffff;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Scaledish</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" type="image/png" href="https://preview.redd.it/y50x69der7h31.png?width=960&crop=smart&auto=webp&s=9179a708e2b531b3b89eed861c75d04375e6510b" />
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab&display=swap" rel="stylesheet">
</head>
<body>
<script src="script.js"></script>
<div class="SlideContent">
<div class="about"
<div class="home">
<div class="TxtC">
<div class="ctxt">
<div class="TextHead">
Scaledish
</div>
<div class="TextBodyTW">
<a onclick='on()'>About</a>
</div>
</div>
</div>
</div>
</body>
</html>