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
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