1.

Which of the following selects input element which has focus?(a) :in-range(b) :hover(c) :focus(d) :invalidThe question was posed to me during an online interview.My doubt is from Server Specific CSS topic in chapter Layout & Images of CSS

Answer»

Right choice is (c) :focus

The EXPLANATION is: :focus selects input element which has focus, :hover selects links on MOUSE hover, :in-RANGE selects input elements with a value within a SPECIFIED range, :INVALID selects all input elements with an invalid value.



Discussion

No Comment Found

Related InterviewSolutions