How can I make a div tag appear when hovering over an anchor tag?
"Service" is the ID of the anchor tag
"Services" is the ID of the div tag
Here is my HTML code:
<ul><li><a href="#" id="Service">Services</a></li></ul>
<div id="Services">
<h1>Hello</h1>
</div>
And this is my CSS code:
#Services
{
display: none;
}
#Service:hover + #Services
{
display: block;
}