HTML CSS examples for CSS Selector:element sibling
Style sibling selector with a:visited
<html> <head> <title>Lorem ipsum dolor sit amet,</title> <style> #hidden-element {<!-- w w w . j a v a 2s . co m--> display:none; } #hidden-element:target { display:block; } </style> </head> <body> <p> <a href="#hidden-element">Lorem ipsum dolor sit a</a> </p> <div id="hidden-element"> <p>Lorem ipsum dolor si</p> </div> </body> </html>