1.

Which selects document’s root element?(a) :required(b) :root(c) ::selection(d) :out-of-rangeThe question was posed to me in an interview for internship.My question is based upon Server Specific CSS topic in section Layout & Images of CSS

Answer» RIGHT choice is (b) :root

Explanation: :root selects the DOCUMENT’s root element, ::selection selects the portion of an element that is selected by a user, :required selects input elements with “required” ATTRIBUTE specified, :out-of-range selects input elements with a VALUE OUTSIDE a specified range.


Discussion

No Comment Found

Related InterviewSolutions