HTML CSS examples for CSS:Selector
CSS tag selector
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #secondary {<!-- www . j av a 2s. co m--> float:right; width:181px; background-color:Chartreuse; color:yellow; } #secondary a { color:blue; text-decoration:none; } #secondary a:hover { color:pink; } </style> </head> <body> <div id="secondary"> <ul id="news"> <li> <a href="#"> <span class="title">Lorem ipsum dolor sit </span>Lorem ipsum dolor sit amet, co</a> </li> <li> <a href="#"> <span class="title">Lorem ipsum dolo</span>Lorem ipsum dolor sit amet, co</a> </li> </ul> </div> </body> </html>