I'd like to style my page so that people with js turned off still have a nice result. A few elements will have to be modified to achieve that. I'm going to write my css like that:

.no-js element {
I am now curious how to add the .no-js class to my <html> element.

I saw that line in html5boilerplate:
<html class="no-js" lang="en">
It doesn't make sense to me add it as a default setting, since everybody will see the .no-js result. Am I missing something? What is the correct way to style for people with js off?

SHouldn't I rather detect if js is on and add features based on .yes-js class?