placeholder image to represent content

HTML and CSS

Quiz by Hardik Vedikin

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

Correct quiz answers unlock more play!

New Quizalize solo game modes
44 questions
Show answers
  • Q1
    Which of the following is a correct way to select an element with class 'example' in CSS?
    @example
    $example
    #example
    .example
    30s
  • Q2
    What does the CSS property 'margin' specify?
    The space around an element
    The position of an element
    The background color of an element
    The font size of an element
    30s
  • Q3
    What does the CSS property 'color' define?
    The text color of an element
    The background color of an element
    The font size of an element
    The border color of an element
    30s
  • Q4
    Which of the following is NOT a valid CSS selector?
    .selector
    element
    @selector
    #selector
    30s
  • Q5
    Which of the following is used to add a background image in CSS?
    background-text
    background-color
    background-style
    background-image
    30s
  • Q6
    Which of the following is NOT a block-level element in HTML?
    span
    section
    h1
    div
    30s
  • Q7
    Which property is used to change the color of an HTML element?
    background-color
    font-color
    text-color
    color
    30s
  • Q8
    Which HTML tag is used to define an unordered list?
    ul
    dl
    li
    ol
    30s
  • Q9
    Which property is used to control the spacing between HTML elements?
    spacing
    border
    padding
    margin
    30s
  • Q10
    Which CSS property is used to specify the font size of an element?
    font-size
    font-style
    text-size
    text-size-adjust
    30s
  • Q11
    What is the correct way to select an element with the ID 'example' in CSS?
    #example
    $example
    .example
    example
    30s
  • Q12
    Which CSS property is used to change the text color of an element?
    color
    font-family
    text-align
    background-color
    30s
  • Q13
    Which CSS property is used to control the spacing between letters in a text?
    letter-spacing
    text-decoration
    text-transform
    line-height
    30s
  • Q14
    What does the CSS property 'display: none;' do?
    It adds a border around the element
    It changes the font style of the element
    It makes the element visible
    It hides the element completely
    30s
  • Q15
    Which CSS property is used to change the background color of an element?
    font-size
    color
    text-align
    background-color
    30s

Teachers give this quiz to your class