This website has examples of games made with HTML CSS and JavaScipt.
Mouse over the icons and buttons on the left for more information about the games and the code.