
It is common for websites to have submenus under menus.
A common behavior for submenus is that it shall only be visible when the main menu is hovered.
Below are simple code snippets of doing this with HTML and CSS only (no Javascript).
First we'll have the HTML structure.
<ul class="menu">
<li><a href="">Menu</a></li>
...