I have a question concerning a menubar in html. I try to give the current page you're in an other color than the normal color in the menubar, but the code that I have written does not work.
#menubar,
#menubar ul{
list-style: none;
margin-bottom: 5%;
}
#menubar>li{
float: left;
}
#menubar li a{
display: block;
height: 125%;
width: 100%;
padding: 10px;
text-decoration: none;
}
#menubar>li>a{
background-color: orangered;
color: #fff;
}
/*submenu*/
#Bloglijst{
position: absolute;
background-color: #efefef;
z-index: 9999;
display: none;
}
#Bloglijst>li>a{
color: #121;
width: auto;
}
#menubar li a:hover{
background-color: #ffffff;
color: chocolate;
}
#menubar li:hover #Bloglijst{
display: block;
}
#ProjectLijst{
position: absolute;
background-color: #efefef;
z-index: 9999;
display: none;
}
#ProjectLijst>li>a{
color: #121;
width: auto;
}
#menubar li:hover #ProjectLijst{
display: block;
}
#welkomstekst{
margin-top: 10%;
}
#menubar{
width: 75%;
padding: 0;
}
.active{
background-color: yellow;
}
<li class="active"><a href="index.html"> Home </a> </li>
<li class="active" ><a href="HTML5/Blog.html"> Blog </a>
<ul id= "Bloglijst">
<li><a href="HTML5/Daily-Blog.html">Daily-Blog</a> </li>
</ul>
</li>
<li class="active"><a href="HTML5/Contact.html"> Contact </a>
<li class="active"><a href="HTML5/Projects.html"> Projects </a>
<ul id= "ProjectLijst">
<li><a href="HTML5/Sport.html">Sport</a> </li>
<li><a href="HTML5/School.html">School</a> </li>
<li><a href="HTML5/Hobby.html">Hobby</a> </li>
</ul>
</li>
<li class="active"><a href="HTML5/Interests.html"> Interests </a></li>
<li class="active"><a href="HTML5/Connections.html"> Connections </a></li>