What is the meaning of the no-js class in html5

I have seen that many sites have special code for ie6, ie7, ie8.

<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]--> <!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]--> <!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]--> <!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]--> 

and I believe html has a specific class like this

 <html class=" js no-flexbox flexbox-legacy canvas canvastext webgl no-touch geolocation postmessage websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg smil svgclippaths"> 

someone will just say what kind of use these codes are

+8
source share
4 answers

This is an instruction for Moderniz. If JavaScript is enabled in your browser, Modernizr changes the no-js class to js , so you can define CSS styles for browsers that support JavaScript and for browsers with JavaScript disabled

+8
source

It fits there, so if IS Javascript is supported, you can use JS to remove the no-js class.

You use the no-js class to style the CSS for your web page, if you usually need the JS for your site to function properly. This provides a degraded but functional format if you want to use enough HTML and enough forms to make the page work without JS, but then hide the ghetto version and replace it with shiny and bizarre material later.

+7
source

<!--[if IE]><![endif]--> is Microsoft's conditional comment .

So, for version IE <7 ( [if lt IE 7] ), <html lang="en" class="no-js ie6"> ,

For IE version 7 ( [if IE 7] ) <html lang="en" class="no-js ie7"> ;

etc.

Finally, for version IE> 9 ( [if gt IE 9] ), use <html lang="en" class="no-js"> .

And since this is a special Microsoft comment, all browsers other than IE will treat it as a regular comment, so only <html lang="en" class="no-js"> (the only uncommented part).

+2
source

Kadıköy Klima Servis

Kadıköy Klima Servis şubemiz bölgede yeni açılarak en yeni teknolojiyi Kadıköy bölgesine sundu. Uzman kadromuzla son teknoloji aletleri donatarak klima servis alanında hizmetlerini en iyi şekilde yapmalarını sağladık.

Müşteri memnuniyetinin en üst seviyede olduğu Kadıköy Klima Servis' inde klima servisi, klima bakımı, klima montajı, klima sökme takma, klima alt yapı hazırlama gibi klimanızıamgilind

Kadıköy Klima Servisi yaptığı her işlemden sorumluluk alıp sizleri sözleşmeyle koruma altına alır. İsteğinize göre klimanızın bakımını düzenli olarak yerine getirebilir. Bu sayede klimalarınızdan sağlıklı, verimli ve arızasız bir şekilde yararlanarak oluşabilecek soruları en aza indirgemiş olursunuz.

-4
source

All Articles