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>
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>