Domanda di colloquio di Gartner

How CSS rules are applied to HTML tags. How are the selectors evaluated and actually work.