It is not valid HTML. As felgall says, to get it to validate you must place <noscript> tags in the body. Please do not try to teach your grandmother(s) to suck eggs.
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.