Html miscellaneous
- In case we want to implement a JavaScript fallback, we would need to create a conditional statement using Modernizr.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Modernizr is a JavaScript library that detects which HTML5 and CSS3 features your visitor’s browser supports. Modernizer determines whether browser has implemented a given feature. Developers take advantage of new features that browsers support, still create fallbacks for browsers that lack support.
- ____________ is a resource loader (CSS and JavaScript) that was made to specifically to work side-by-side with Modernizr.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Modernizr.load is optional in your build, but if you are loading polyfills, there’s a good chance it can save you some bandwidth and boost performance a bit. Modernizr.load objects print out on your page in the exact spot they should be, coming after the Modernizr.
- ___________ is used to test whether geolocation is supported in old browsers.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Since Modernizr is a JavaScript object with methods, we can use Modernizr.geolocation to test whether geolocation is supported. Geolocation API Detects support for the Geolocation API for users to provide their location to web applications.
- Modernizr does actually add missing functionalities to browsers save for the HTML5 tags styling support.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Modernizr is a JavaScript library which is designed to detect HTML5 and CSS3 features in various browsers, which lets JavaScript avoid using unimplemented features or use a workaround such as a shim to emulate them. Modernizr, in spite of its name, does not actually add missing functionalities to browsers save for the HTML5 tags styling support.
- ____________ allows you to add custom styles to the document and test an element afterwards.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Modernizr.testStyles() allows you to add custom styles to the document and test an element afterwards. An element with the id of “modernizr” is injected into the page.