---
title: Conditional Comments HTML - Internet Explorer Issues In Web Design
description: Conditional Comments HTML - Internet Explorer Issues In Web Design
---

[Web design & marketing tips by Ironpaper ](https://www.ironpaper.com/current)

# [Conditional Comments HTML - Internet Explorer Issues In Web Design](https://www.ironpaper.com/current/2009/09/conditional-comments-html-internet-explorer-issues-in-web-design)

 Written by [Ironpaper](https://www.ironpaper.com/current/author/admin) | Sep 21, 2009 5:55:41 PM

Conditional comments work in Internet Explorer and on Windows only.  For this reason, you can create special instructions to be executed by Internet Explorer only ( on Windows ). Conditional comments are for Internet Explorer 5 and higher.

The basic structure of a conditional comment is the same as an HTML comment (<!-- -->). When another browser sees such comments, they will simply ignore them.

This code snippet will target Internet Explorer 6:

**<!--[if IE 6]>  
 Special instructions for IE 6 here  
 <![endif]-->  
**  
 This code snippet will target Internet Explorer:

**<!--[if IE 7]>  
 According to the conditional comment this is Internet Explorer 7<br />  
 <![endif]-->**

This will target the browser: Internet Explorer and all versions above 5:

**<!--[if IE]>  
 According to the conditional comment this is Internet Explorer<br />  
 <![endif]-->**

[View full post](https://www.ironpaper.com/current/2009/09/conditional-comments-html-internet-explorer-issues-in-web-design)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Ironpaper"
  },
  "dateModified" : "2021-06-30T03:08:14.997Z",
  "datePublished" : "2009-09-21T17:55:41Z",
  "headline" : "Conditional Comments HTML - Internet Explorer Issues In Web Design",
  "image" : {
    "@type" : "ImageObject",
    "height" : 40,
    "url" : "https://connect.ironpaper.com/hubfs/Imported_Blog_Media/webdesign-tips-1.gif",
    "width" : 500
  },
  "mainEntityOfPage" : "https://www.ironpaper.com/current/2009/09/conditional-comments-html-internet-explorer-issues-in-web-design",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "Web design & marketing tips by Ironpaper"
  }
}
```