The easiest way is to use IE Conditionals .
Note. IE10 and later removed support for this feature. For modern browsers, the widespread method of conditionally displaying content for compatibility purposes uses feature detection . Modernizr is a popular library designed to detect detection functions.
For instance:
Examples from the conditional site:
<![if !IE]><p>You are not using Internet Explorer.</p><![endif]> <![if false]>You are using a <em>downlevel</em> browser.<![endif]>
source share