I agree. W3 should get you started on the right track. Learning code in books has never worked for me. Learning online is the way to go because you can test everything on your own and go through their tutorials along the way.
You might want to check out http://w3fools.com/ before recommending that in the future. They list some great alternative resources.