Ever since I have learned HTML, I have always kept a book for reference. There are so many codes out there that there is no way to remember them all. My old HTML books was falling apart, so I had bought this one to replace it.
The book has 932 pages, which is quite a bit. I believe that it covers everything you need. You have html, xhtml and even css in the book. All of which, you need in order to do everything you need. I think this book is great for a beginning to all the way to an advanced user. The one code that it is missing is how to create rounded corners in CSS, but it does teach you a lot of other things. They have a whole chapter devoted to CSS.
It teaches you about iframes, tables and so on. With the CSS section, it does teach you how to link the css files as an external file instead of putting all that infomation all in one file.
What is so great about this book is that they do show you examples of what you are trying to accomplish. It even has a appendix just for reference of the codes. That includes a section on the color codes.
I have not read it all the way through, but for a book like this, you look for the parts you need as you will always use this for reference when you get stuck in a certain section.