Loading, please wait ...
Open its course - CSS

Multiple Choice Questions for CSS Selectors

  • ×

    Hidden Questions!

    Some MCQs are not visible. Usually teachers hides their visibility if they are few in number. Subject Expert recommends them to have more than 70+ questions against the topic and make them public.

  • 1 How to select all paragraph elements with a lang attribute?
    1. p[lang = "Select"]
    2. p=[lang]
    3. p[lang]
    4. p#lang

  • 2 "body > p" is syntax of:
    1. Parent Selector
    2. Descendant Selector
    3. Child Selector
    4. Attribute Selector

  • 3 p is child of body. In CSS it will written as:
    1. p > body
    2. body > p
    3. p < body
    4. body < p

  • 4 .black { color: #000000; } is example of:
    1. Universal Selector
    2. Element Selector
    3. Descendant Selector
    4. Class Selector

  • 5 Which selector matches the name of an element type.
    1. Type Selector
    2. Universal Selector
    3. Id Selector
    4. None of above

  • 6 The * is
    1. Universal Selector
    2. Element/Type Selector
    3. Id Selector
    4. Class Selector

  • 7 In CSS, selectors declare which part of the markup a style applies to by matching !
    1. Tags
    2. Attributes
    3. Elements
    4. Both a and b

Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn, Evaluate and Optimize

Follow Us
Facebook Switch Display Mode Enable Translation
© 2024 - Subject Expert