1

I know you can target browsers with conditional comments, as explained here in MSDN.
But I just saw one that looked like this <!--[if gte mso 9]>

What does this check for and what (other than browsers) can you check for with conditional comments?

EDIT
Is there any documentation on the conditional comments. What options and what version numbers you can use?
mso = Microsoft Outlook
9 = 2007

3 Answers 3

4

It is used for targeting Microsoft Outlook 2007 and later in HTML emails. See this article for details.

Sign up to request clarification or add additional context in comments.

Comments

1

This German version of Wikipedia lists the various targets (IE, Microsoft Office, and VML).

http://de.wikipedia.org/wiki/Conditional_Comments (You will need to Google translate)

Also, this post suggests that MS Publisher can also be targeted

http://www.adras.com/can-t-view-page-in-browser.t32980-10-2.html

1 Comment

Ok, so mso and js seem to be the only extra software you can target, besides browsers?
1
 1. <!--[if IE 8]> <p>Welcome to Internet Explorer 8.</p> <![endif]--> 2. <![if lt IE 8]> <p>Please upgrade to Internet Explorer version 8.</p> <![endif]> // include this too This is <comment>not</comment> Internet Explorer 
  1. firefox - print - nothing

    IE 8 - print - Welcome to Internet Explorer 8.

  2. Firefox - print - Please upgrade to Internet Explorer version 8.

    IE 8 - pirnt - nothing but Welcome to Internet Explorer 8. if inclcded.

<!-- comment inner HTML Also while

<! will not comment inner HTML. as in FIREFOX example.

3 Comments

Thank you, but with the risk of sounding ungrateful, that was explained in the link to MSDN. I wanted to know what else you could target beside browsers.
see <comment> as i edit in code and run in firefox & IE and look at this too [wiki][1] [1]:en.wikipedia.org/wiki/Conditional_comment
one more thing this is specific to micosoft ONly

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.