bgColor is an obsolete attribute in html5
I downloaded ch. 1 of this book in my search for a good book to review JavaScript. It looks like good one, but already in chapter 1 I have come across code that doesn't work for me, because 'bgcolor' has been made obsolete in html5. Why is a new version of a coding book using obsolete code?
BTW, I searched online and found that it should be document.body.style.backgroundColor
I still think this is a great book, and will buy the online version, but this code disappointed me, because I was really depending on something that was up-to-date.
|