<p>I've seen people doing things like this in their HTML:</p>

<pre><code>&lt;!--[if IE]&gt;
  &lt;link rel="stylesheet" href="ie.css" type="text/css" /&gt;
&lt;![endif]--&gt;
</code></pre>

<p>Does this work across all modern browsers and is there a list of browser types that will work with that kind of if statement?</p>

<p><strong>Edit</strong></p>

<p>Thanks <a href="https://stackoverflow.com/questions/46124/is-there-a-list-of-browser-conditionals-for-use-including-stylesheets#46126">Ross</a>.  Interesting to find out about <strong>gt, lt, gte, &amp; lte</strong>.</p>

This works across all browsers because anything except IE sees
```
<!--IGNORED COMMENT-->
```
. Only IE reads the comment if it contains a conditional clause. Have a look at
this article
You can also specify which version of IE. For example:
```
```
<!--[if IE 8]>
<link rel="stylesheet type="text/css" href="ie8.css" />
<![endif]-->
```
```