What is the purpose of the HTML “no-js” class?

后端 未结 7 1190
误落风尘
误落风尘 2020-11-27 08:59

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

7条回答
  •  暖寄归人
    2020-11-27 09:21

    The no-js class gets removed by a javascript script, so you can modify/display/hide things using css if js is disabled.

提交回复
热议问题