Maybe I am posting something completely obvious and unnecessary here, but this is the best web site ever I found as reference for web programming.
http://www.w3schools.com/
What makes this web site so special is that om almost all pages which explain some aspects of the language, a button "Try it yourself" takes you to a screen with two panes. In one pane the example is written, the other pane shows the output on a web page. In the first window you can actually change the code snippet, and see the result immediately in the pane on the other side. That is a great way to study why certain things occur as they do.
Highly recommended.
jlinkels