I am working on an application which only supports IE7 and IE8. I found that CSS is used more as compared to XPath while identifying the elements in IE. I would like to know what is the differences between using CSS and XPath and in which situations I should use CSS and in which should I use XPath if I am using IE.