HTML CSS examples for CSS Selector:id
"~" (tilde/squiggle/twiddle) CSS selector usage
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .a + .b { background-color:Chartreuse; } </style> <!--from ww w .ja va 2 s . c o m--> </head> <body> <ul> <li class="a">Lor</li> <li class="b">Lor</li> <li>Lor</li> <li class="b">Lor</li> <li class="a">Lor</li> </ul> </body> </html>