What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

hamburger menu

valentin-live

New member
Help I need it bad, with html code below I get "Element nav not allowed as child of element label in this context. " when I vaidet my code
html code.
What I´m I doing wrong in the code. I need label and I need nav, so how do I make it work?

Need help



</head>
<body>
<header>
<img src="image/anna_logga.png" alt="loggan">
<label>
<input type="checkbox" class="trigger" id="trigger">
<span class="hamburger">
<span></span>
<span></span>
<span></span>
</span>
<nav>
<ul class="main-menu">
<li><a href="Index.html">Hem</a></li>
<li><a href="x.html">x</a></li>
<li><a href="asss.html">assss</a></li>
</ul>
</nav>
</label>
</header>
 
Back
Top