CSS Pseudo Classes Questions FSR300623

Hi dear students please answers all questions as follows:-

  1. The pseudo-class that selects even-numbered elements within its parent is:
    a) :even
    b) :nth-child(2n)
    c) :even-child
    d) :even-of-type

  2. The pseudo-class used to select the last element when it is being activated is:
    a) :active
    b) :focus
    c) :last-child
    d) :last-of-type

  3. Which of the following pseudo-classes selects an element when it is being hovered over by the cursor?
    a) :hover
    b) :active
    c) :visited
    d) :focus

1 Like