Webmonkey offers the super basics of formatting as a quick cheetsheet. The W3 Schools offers some of the most comprehensive references for HTML and CSS on the web. Just getting started with HTML? Check out the Tutorials offered by HTML Dog for some really great introductory tutorials.
The definitive reference for PHP is of course the PHP online manual. If you are just getting started with PHP though you might want to check out ...