Home » HTML » Html miscellaneous » Question
  1. For checking programmatically we use _________.
    1. Modernizr._prefixes
    2. Modernizr.testAllProps
    3. Modernizr.mq
    4. Modernizr.prefixed
    5. None of these
Correct Option: C

For checking programmatically we use Modernizr.mq, it checks if the window of current browser matches a media query or not. Syntax is

var qu= Modernizr.mq(‘(min-width: 300px)’); 
if(qu) {// browser window is larger than 300 px}

We should use only valid media query. Modernizr.prefixed Modernizr API takes string CSS value in Document Object Model. Modernizr._prefixes is internal list of prefixes. To check whether a given CSS property is supported by browser, Modernizr.testAllProps API.



Your comments will be displayed only after manual approval.