Usually your a tags are wrapped in a div tag. So your code should look something like this:
<html><head>
<style>
.box a:hover {
background-color:#F00;
font-size:18px;
}
</style>
<title>Untitled Document</title>
</head><body><div class="box"><a href="">Test</a></div></body></html>