Home » HTML » Html miscellaneous » Question
  1. classPrefix is used when _____________.
    1. when there is no any class in the code
    2. not mandatory it depends on user
    3. class name clashes
    4. it is mandatory prefix before all the classes
    5. None of these
Correct Option: C

If modernizr’s class names are clashing with already existing class then we use classPrefix inside the configuration. It works same as hidden detects that adds .hidden class. Syntax is { “classPrefix”: “tee”, “feature-detects”: [“dom/hide”]}, this means instead of <html class=”hide”> we will get <html class=”tee-hidden”>.



Your comments will be displayed only after manual approval.