Considering the content on their website, I don't think the W3Schools books would be a great option. Albeit they have good, easy to understand information for beginners on many subjects, but they seem to fall short when it comes to "in-depth".
I don't know personally, I've never used books to learn about web development, but I can say you will want to make sure you pick up a reasonably recent publication! The internet is an evolving environment, I'm sure there are many books on the subject with out-dated information.
Any books they produced would be similarly outdated as if they had the time to update the information properly for the books then they could have updated their web site with the same info.
There are lots of far better resources for most web topics out there now. The domain name for the w3schools web site has misled a lot of people into believing that it is somehow far more 'official' than other far superior sites that didn't get misleading domain names (since there is no connection whatever to the W3C standards body).
Also note and be aware that W3Schools has no relation whatsoever to the World Wide Web Consortium (W3C) despite the confusingly similar name – which is probably part of the (unfounded) reason why that site is so popular.
I'm not convinced that amount of hate is deserved, but some of the points they make are valid.
As for the original question, I have been a fan of the "Head First" book line for a while now. Lots of pictures, very easy writing style, gracefully takes you into the subject matter. Very well done series of programming books.
A (non-technical) book which is required reading is Steve Krug's 'Don't Make Me Think' about usability. It's pretty old now and some of the screen shots are faintly archaic, but the points it makes are as valid as ever.