I'm somewhat new to HTML/CSS and struggling to get a drop-down menu to appear while hovering over the selected attribute. It previously worked when my div tag was outside the li tag however it's not proper HTML5 convention having a div tag as a child tag to my ul tag. Looking to understand what I'm doing wrong. I have two separate drop downs, "Products" and "Contact Us". For Products, looking to have Currency Exchange and Service 2 to appear and under Contact Us, the French and Spanish version of it. All help is appreciated!
.nav-links li .dropdown:hover .nav-links li .dropdown-content {
display: block;
}
<nav class="navbar">
<ul class="nav-links">
<li><a class="active" href="index.html"><i class="fa fa-fw fa-home"></i>Home</a></li>
<li>
<div class="dropdown"><a>Products<i class="fa fa-fw fa-caret-down"></i></a></div>
</li>
<li>
<div class="dropdown-content"><a href="currency.php">Currency Exchange</a></div>
</li>
<li>
<div class="dropdown-content"><a>Service 2</a></div>
</li>
<li>
<div class="dropdown"><a href="contact.html">Contact Us<i class="fa fa-fw fa-caret-down"></i></a></div>
</li>
<li>
<div class="dropdown-content"><a><span lang="fr">Contactez-nous </span><span></span></a></div>
</li>
<li>
<div class="dropdown-content"><a><span lang="es">Contáctenos </span><span></span></a></div>
</li>
<li><a href="aboutme.html">About</a></li>
</ul>