Thread: Ch1
View Single Post
  #3 (permalink)  
Old February 4th, 2017, 02:22 PM
webmachine webmachine is offline
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2017
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
Reply With Quote