I wouldnt waste your time on books, like Ive told someone else who asked here, the best resources are
W3Schools Online Web Tutorials and
Web Developer's Handbook | CSS, Web Development, Color Tools, SEO, Usability etc. and what type of code you use depends on the type of site, what most sites are made up of is a combination of css/html.