Yes, and historically those code demos were often wrong in many important ways (like not working in all browsers, or insecure). They are much better now but reputation is hard to recover.
https://web.archive.org/web/20110412103745/http://w3fools.co...