browsers | conditions
X Html
The following code is a test of the effect of a conditional comment statement in Microsoft's IE browser
<!--[If ie]>
<! [endif]-->
<!--[if IE 5]>
<! [endif]-->
<!--[if IE 5.0]>
<! [endif]-->
<!--[if IE 5.5]>
<! [endif]-->
<!--[if IE 6]>
<! [endif]-->
<!--[if IE 7]>
<! [endif]-->
The following code is a conditional comment that runs in non-IE browsers
<!--[if! ie]><!-->
<!--<! [endif]-->
Ultimately works in non IE and special IE browsers
(or use the LTE LT or GT GTE to determine, such as:
<!--[If LTE IE 6]>
Information displayed under IE 6
<! [endif]-->
).
<!--[if IE 6]><!-->
or a non IE browser <!--<! [endif]-->
<!--[if ie]><p> you are using IE browser </p><! [endif]--><!--[If IE 5]><p> version 5</p><! [endif]--><!--[If IE 5.0]><p> version 5.0</p><! [endif]--><!--[If IE 5.5]><p> version 5.5</p><! [endif]--><!--[If IE 6]><p> version 6</p><! [endif]--><!--[If IE 7]><p> version 7</p><! [endif]--><!--[if! ie]><!--><p> You are not using the Internet explorer</p><!--<! [endif]--> end up acting on non ie and special IE browsers (or using either LTE LT or GT GTE, such as:<!--[if LTE IE 6]> information displayed under IE 6 <![ endif]-->) .<!--[if IE 6]><!--><p> you are using Internet Explorer version 6<br/> or a non-IE browser </p ><!--<! [endif]-->
[Ctrl + A ALL SELECT hint: You can modify some of the code, and then run]