Html miscellaneous


  1. Which of the following detects for the support of size attribute of an image?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Sizes test for the sizes attribute for images. Image crossOrigin is used to check the support of crossOrigin attribute on images, it allows cross domain images on a canvas, JPEG 2000 and JPEG XR are respectively for the check of JPEG 2000 and JPEG XR formats on the images.


  1. Which of the following check support for non-alpha, lossy webp?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Webp Lossless detects for lossless webp, non-alpha webp support. Webp tests for all forms of webp support like alpha, lossy, animated, lossless etc. Webp Animation detects for the support of animation in webp, Webp Alpha detects the support of transparent webp.



  1. Which of the following detects support for the method of the form?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    input formmethod detects support for formmethod attribute, input formtarget detects for formtarget attribute on forms, input formenctyp detects for the support of formenctype attribute, it overrides form enctype attribute, input formactin detects for the support of formaction attribute.


  1. Which of the following detects support for basic Worker API?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The support of basic web worker is detected by web workers. Web workers mean running a script in the background for web content. Shared workers detect support of shared workers, data workers detect support for creating Web Workers from Data URI’s. Blob workers detect support for creating web workers from Blob URI.



  1. Which of the following is internal list of prefixes?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Modernizr._prefixes is internal list of prefixes. It is set against things like prefixedCSS and prefixed. It is an array of kebab-case vendor.

    E.g. var ru= Modernizr._prefixes.join(‘transform: rotate(10deg);’); ru == ‘transform: rotate(10deg)’; webkit- transform: rotate(10deg); moz-transform: rotate(10deg); o-transform: rotate(10deg); ms-transform: rotate(10deg);’

    Modernizr.prefixedCSSVAlue (prop,value). Modernizr.prefixed takes string css value in camelCase. Modernizr.prefixedCSS returns hyphenated value.