<html>
<body>
<button onclick="toggle()" class="nm" > main</button>
<div class="cntnr" style="display : none;">
<ul class="cnkid">
<li class="cnkid"><a class="cnkid" href="delavarlogin.html">one</a></li>
<li class="cnkid"><a class="cnkid" href="delavarsignup.html">two</a></li>
</ul>
</div>
<script>
function toggle(){
var x =document.getElementsByClassName('nm').nextSibling;
if(x.style.display === 'block')
{
x.style.display='none';}
else{
x.style.display='block';
}
}
</script>
</body>
</html>
I verified the code for spelling errors and it appears to be correct (hopefully):| I have also tested the script portion and it seems accurate based on the resources I am studying from.