CSS Attribute Selectors


  1. Which of the following selector selects the elements that are currently enabled?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    :enabled


  1. Which of the following selector selects the element that is the first child of its parent that is of its type?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Example: strong:first-of-type {font-size:bigger;}



  1. Which of the following selector selects elements that do not match the selector s?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Example: *:not(h1) {color: black;}


  1. Which of the following selector selects an element if it’s the only child of its parent?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Example: h1:only-child {color: blue;}



  1. Which of the following selector selects the element that is the target of a referring URI?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Example: :target{color:red;}