I wanted to see how other people code the...">

Using Firebug, in the <DOCTYPE> section, why the tag set is added to the first line <html class => ">

I wanted to see how other people code their sites, but got stuck trying to figure out what this does:

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

What is the purpose of this and can someone explain this to me?

+4
source share
3 answers

Because they use modernizr

Modernizr detects features supported and not supported by the browser. Different classes are added in response to it HTML. Which can then be recorded to fix cross-browser compatibility issues.

<html> , HTML.

+3

html Modernizr js, .

Modernizr - javascript, html. , , border-radius CSS Modernizr, borderradius, border-radius, no-borderradius, .

, , no-borderradius , border-radius CSS3.

+2

modernizr .

, CSS3, . , , HTML csstransitions w/js.

Modernizr javascript . , theres - , , .

,

IT OUT

+1

Source: https://habr.com/ru/post/1569191/


All Articles