We would like to know how to create Dropdown menu using UL and hover.
<!DOCTYPE html>
<html>
<head>
<style>
.dropdown ul {<!--from w w w . j a v a 2 s. co m-->
display: none;
}
.dropdown:hover ul {
display: block;
}
</style>
</head>
<body>
<div class="dropdown">
Open
<ul>
<li>asdf</li>
<li>foo</li>
</ul>
</div>
</body>
</html>
The code above is rendered as follows: