Css miscellaneous


  1. The _____________ property allows us to include the padding and border in an element’s total width and height.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    .div1 {
    box-sizing: border-box;
    }


  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. The ___________ property specifies if/how an element is displayed.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    h1.hidden {
    display: none;
    }


  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. ____________ property sets the coordinates of the clipping shape that exposes or hides the content of absolutely positioned elements











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    clip: rect(coordinates) | auto | inherit