CSS Introduction


  1. Which of the following selector is used to selects the element that is the root of the document?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    :root {background-color: blue;}
    /* sets the background color to blue for the root element */


  1. Which of the following selector is used to select elements that are read-only. When applied to form elements, this would select fields with the readonly attribute set?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    input:read-only {color: gray;}
    /* put all read only fields in gray */