Css miscellaneous


  1. The _____________ property specifies the background color of an element.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    body {
    background-image: url("img_tree.png");
    background-repeat: no-repeat;
    }


  1. Which of the following elements are block and inline elements, respectively, that have no particular rendering?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The div element and span element are block and inline elements, respectively, that have no particular rendering. You might call them generic tags. Because these tags don’t have any predefined meaning or rendering, they are very useful for arbitrary style duties.



  1. Find the specificity of this ” style=”” “.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    specificity = 1,0,0,0


  1. Find the specificity of this “#x34y”.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    specificity = 0,1,0,0



  1. Find the specificity of this “li.red.leve”.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    specificity = 0,0,2,1