CSS ID's And Class's

10 Questions | Total Attempts: 76

SettingsSettingsSettings
Please wait...
CSS Quizzes & Trivia

Tests knowledge over the basic Ideas behind CSS selectors


Questions and Answers
  • 1. 
    What is a selector?
    • A. 

      An attribute that allows you to select an HTML element for styling within CSS

    • B. 

      Elements that connect HTML and CSS

    • C. 

      A class or ID

    • D. 

      An attribute that allows the selection of every element within the HTML document

  • 2. 
    What is a class selector? 
    • A. 

      Allows you to select one element within the HTML document with a class attribute.

    • B. 

      Allows you to select the entire document to be styled

    • C. 

      Selects any element within the HTML document that has a class attribute.

    • D. 

      Allows you to select and style links

  • 3. 
    What is an ID selector? 
    • A. 

      Allows you to select any element within the HTML document as long as it has an ID attribute

    • B. 

      Allows you to select the descendant of elements within the document

    • C. 

      Allows you to select elements universaly

    • D. 

      Allows you to select any element within the HTML document once using an ID attribute

  • 4. 
    What is a type selector? 
    • A. 

      Allows you to select specific sections of elements

    • B. 

      Allows you the select entire elements such as every Paragraph or all of the divs

    • C. 

      Allows you to select attributes

    • D. 

      Pulls elements from other various parts of the page for editing

  • 5. 
    What is a universal selector?
    • A. 

      A universal selector selects every element in the document for styling

    • B. 

      Selects all of the element you ask it to

    • C. 

      Allows coding to be done for every element

    • D. 

      Pulls styling into the CSS

  • 6. 
    Universal selectors allows you to style the entire document?
    • A. 

      True

    • B. 

      False

  • 7. 
    Class and ID's allows you to select multiple elements 
    • A. 

      True

    • B. 

      False

  • 8. 
    Classes are showed in the CSS by using a #
    • A. 

      True

    • B. 

      False

  • 9. 
    Each Id can only be used once
    • A. 

      True

    • B. 

      False