CSS Selectors

  • Universal Selector of CSS 
  • Element/Type Selector of CSS 
  • ID Selector of CSS 
  • Class Selector of CSS 
  • Grouping Selector of...
    View Complete Description
    ×

    Topic Summary

    • Universal Selector of CSS 
    • Element/Type Selector of CSS 
    • ID Selector of CSS 
    • Class Selector of CSS 
    • Grouping Selector of CSS 
    • Child Selector of CSS 
    • Descendant Selector of CSS 
    • Adjacent Sibling Selector of CSS 
    • General Sibling Selector of CSS 
    • Attribute Selectors
Topic Questions:
13
MCQs T/F FiB SQ
10 1 2 0
Question Type Legends

Easy

Medium

Difficult

Multiple Choice Questions for CSS Selectors

  • 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

  • ×

    Hidden Questions!

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

Contact Us

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

Subject Expert

Learn and Evaluate

Follow Us
© 2020 - Subject Expert