You can learn about HTML and CSS at
http://www.w3schools.com
These are general pages on these which are applicable to web pages, and mostly applicable to epubs. There are some things you can do on web pages you can not do on epubs, currently anyway. But the explanations are good and they have a try it section with many things that allows you to try out changing an attribute and see what happens in a window on the same page.