Web >> Design >> CSS >> How to define the style for anchor tag to underline on hover

a:link {text-decoration: none} a:visited {text-decoration: none} a:hover {text-decoration: underline} a:active {text-decoration: none} note the order is important! <outertag ...class="somestyleclass">sometext<a class="somestyleclass" href=....>link text</a></outertag> where outertag can be any HTML tag that encloses the <a> tag