views:

228

answers:

7

I would like to learn moders XHTML and CSS programming. Does someone has any good book suggestions where to start? I would like to have a book where I can learn those languages completely or as much as possible and I can use them if I get trouble on my web-programming projects. And of course I would like that my sites passes web-standards and validators and teaches what are different DTD's.

+4  A: 

Don't waste your money on a book, there are so many good websites that do this:

All of these websites are free and will help you begin learning web development.

Andrew Hare
I have heard that at least W3Schools contains some mistakes.
Jaska
@Jaska - Where did you hear this?
Andrew Hare
http://keskustelu.suomi24.fi/node/8293380Translationw3schools is a cheating page which tries to look as a w3c-site but it is yeasty and contains mistakes. It might be fun to read for those who does not read books.
Jaska
+1: Any web development book you buy is going to be outdated in a couple of years anyway.
Sam DeFabbia-Kane
@Jaska - Ah I see. I was more hoping to see some examples as to the exact mistakes that it contains.
Andrew Hare
@Andrew - I think I found a mistake: http://stackoverflow.com/questions/212705/how-does-css-clearing-really-work
Nathan Long
HTML Dog has a book version too, it is just as good as the web site.
robertc
While there is a lot of good information online, I personally find that sitting down with a systematic, well-edited book is the best way for me to learn new topics, and online tutorials help fill in the gaps as I run into questions.
Nathan Long
+1. HTMLDog is both a very good book and a great website.
Luke
+1  A: 

I have only ever needed Dynamic HTML: The Definitive Reference. Having a first edition from 1998 means everything it contains is supported almost eniterly in modern browsers. The 2nd edition is still pretty old from 2002 though so that's probably similar.

I also make good use of Peter-Paul Koch's excellent site quirksmode.org which covers browser compatability about as well as I could imagine anyone doing.

Dave Anderson
Luke
+2  A: 

I suggest CSS: The Definitive Guide if you want to really understand how CSS works. There's some how-to, but more information on what the rules mean and how things work.

This is how I learned CSS, and it makes a great reference. From there you can understand more of the clever tricks you find online.

Nathan Long
+1  A: 

Head First HTML with CSS & xHTML would be a good starter book. I have not read it specifically, but have read others in the Head First series and think they're excellent.

They are specifically for beginners, and use a lot of innovative techniques for helping you understand and remember what you're learning.

Nathan Long
+1  A: 

Css Mastery - is the best CSS book I have read. If you think you know a lot about CSS, this book will open eyes!

Martin
A: 

I learned from the CSS Zen Garden and the associated book, The Zen of CSS Design. I'm not sure that's the best way since the books are more about the design aspects of css, but it worked for me.

Shea Daniels
+1  A: 

I would second the recommendation of Head First HTML with CSS & xHTML.

Other good "starter" books would be:

All of the above are very readable and focused on the practical.

ewall