placeholder image to represent content

HTML CSS

Quiz by Kris Lefko

Feel free to use or edit a copy

includes Teacher and Student dashboards

Measure skills
from any curriculum

Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.

With a free account, teachers can
  • edit the questions
  • save a copy for later
  • start a class game
  • automatically assign follow-up activities based on students’ scores
  • assign as homework
  • share a link with colleagues
  • print as a bubble sheet

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
14 questions
Show answers
  • Q1
    What is the purpose of CSS ID?
    To apply styles to multiple elements
    To define a class of elements
    To group elements together
    To uniquely identify an element
    30s
  • Q2
    How is CSS ID selector defined?
    Using a hash (#) symbol followed by the ID name
    Using a period (.) symbol followed by the ID name
    Using a dollar ($) symbol followed by the ID name
    Using an asterisk (*) symbol followed by the ID name
    30s
  • Q3
    Which of the following is true about CSS ID?
    It is only used for JavaScript functions
    It can be shared between multiple elements
    It can be used to group elements together
    It must be unique within a webpage
    30s
  • Q4
    Which symbol is used to define a CSS ID selector?
    Hash (#) symbol
    Dollar ($) symbol
    Asterisk (*) symbol
    Period (.) symbol
    30s
  • Q5
    Which of the following is NOT true about CSS IDs?
    IDs are used to uniquely identify elements
    An ID must be unique within a webpage
    Multiple elements can have the same ID
    CSS IDs can be targeted with JavaScript
    30s
  • Q6
    How is CSS ID selector different from CSS class selector?
    CSS ID selector is used for inline styles while CSS class selector is used for external stylesheets
    CSS ID selector has higher specificity than CSS class selector
    CSS ID selector targets a specific element while CSS class selector targets multiple elements
    CSS ID selector can only be applied to block-level elements
    30s
  • Q7
    Which CSS property is used to assign an ID to an HTML element?
    The 'name' property
    The 'id' property
    The 'class' property
    The 'data' property
    30s
  • Q8
    Which CSS property is used to set the background color of an element?
    color
    background-image
    background
    background-color
    30s
  • Q9
    Which CSS property is used to set the text color of an element?
    text-style
    color
    text-color
    font-color
    30s
  • Q10
    Which CSS property is used to set the border color of an element?
    border-style
    outline-color
    border-color
    border-width
    30s
  • Q11
    Which CSS property is used to set the color of a link when it is being hovered?
    a:focus
    a:hover
    a:active
    a:visited
    30s
  • Q12
    Which CSS property is used to set the color of an element's text when it is being selected?
    ::text-color
    ::selected
    ::highlight
    ::selection
    30s
  • Q13
    Which CSS property is used to set the color of a visited link?
    a:focus
    a:hover
    a:visited
    a:link
    30s
  • Q14
    Which CSS property is used to set the color of the outline of an element?
    outline-color
    text-color
    background-color
    border-color
    30s

Teachers give this quiz to your class