placeholder image to represent content

LONGTEST_Q4

Quiz by Camille Bernabe

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

Correct quiz answers unlock more play!

New Quizalize solo game modes
50 questions
Show answers
  • Q1

    What is the format if you want to create font color green style for an ID selector in a <div> tag?                                                                                                                           

    div#style { color:green};

    div.style { color:green;}                                         

    div#style { color:green; }

    div.style { color:green} ;

    30s
  • Q2

    These classes are defined by a colon and are not user defined.?

    class

    id

    pseudo class

    selector

    30s
  • Q3

    What should be the order of the anchor property?

    link / visited / hover /active 

    active / link / hover /visited

    hover / visited / active/ link

    visited / active / link/ hover

    30s
  • Q4

    An ID selector is represented by a symbol of?

    hash tag

    dot    

    A.   parentheses

    exclamation point

    30s
  • Q5

    How do you select elements with class name 'font'?

    .font

    #font

    font

    *font

    30s
  • Q6

    How do you group selectors?

    Separate each selector with a plus sign

    Separate each selector with comma

    Separate each selector with a space     

    Separate each selector with colon

    30s
  • Q7

    In the rule, the "selector":

    serves as a property.

    selects which element to style.

    allows substituting the selected attribute.

    serves as a value.

    30s
  • Q8

    A selector that is usually in a page title or navigation part of the page.

    id      

    class

    selector

    attribute

    30s
  • Q9

    What type of pseudo-class is used if you point your mouse pointer in a link?

    visited

    active

    link

    hover

    30s
  • Q10

    How do you select an element with id 'text'?

    #text       

    .text

    *text                            

    text

    30s
  • Q11

    Which pseudo-class will you use to style links that have never been visited?

    :hover

    :visited

    :link

    :active

    30s
  • Q12

    What is the correct CSS syntax for making all the <span> elements bold?                    

    <spanstyle=”text-size:bold”>

    span {font-weight:bold;}

    span{text-size:bold}

    <spanstyle=”font-size:bold”>

    30s
  • Q13

    Which of the following would be used to create an ID called header which has a width of 750px, a height of 30px and the color of the text is black?

    .header { height: 30px;width: 750px; color: black; }

    #header{ height: 30px; width: 750px; text: black; }

    #header { height: 30px;width: 750px; color: black; }

    .header{ height: 30px; width: 750px; color: black; }

    30s
  • Q14

    How do you select all p elements inside a div element?

    div p

    div.p

    div=p

    div + p         

    30s
  • Q15

    Write a CSS id selector for the following HTML code. <div id="content" class="blue"> 

    .blue

    #content     

    element

    div    

    30s

Teachers give this quiz to your class