HTML CSS examples for CSS Selector:class
CSS Selector: Star followed by class selector
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> div.myclass {<!-- ww w . j a v a2 s .c o m--> background:gold; } div *.myclass { color:Chartreuse; } </style> </head> <body> <div class="myclass"> Lorem ipsum d </div> <div> <div class="myclass"> Lorem ipsum dolor </div> <span class="myclass">Lorem ipsum dolo</span> </div> </body> </html>