I notice that in a lot of template engines, in the HTML5 Boilerplate, in various frameworks and in plain php sites there is the no-js class added onto the
no-js
Modernizr.js will remove the no-js class.
This allows you to make CSS rules for .no-js something to apply them only if Javascript is disabled.
.no-js something