HTML Code For Checking If the Browser Is Internet Explorer

Here are the examples on how to check if the user is using any Internet Explorer browser or a specific one with only HTML code.

<!--[if IE]>
   This checks for Internet Explorer
<![endif]-->

<!--[if lte IE 6]>
  This checks for less than or equal to Internet Explorer 6
<![endif]-->

<!--[if IE 7]>
  This checks for Internet Explorer 7
<![endif]-->

Example of use:

<!--[if lte IE 6]>
    <link rel="stylesheet" type="text/css" href="/css/ie6-hacks.css" />
<![endif]-->