IF Tags | Help wi th them?

Discussion in 'HTML & Website Design' started by GeelongTECH, Apr 8, 2010.

  1. #1
    Hey,
    my site use's <!--[if IE]><![endif]--> tags but only if IE.

    Is there a site or page that shows all <!--[if]> tags? that i can use?

    please reply if you know of a page, site or is you know some off the top of your head.

    Thanks,
    Chris(A.K.A GeelongTECH)
     
    GeelongTECH, Apr 8, 2010 IP
  2. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #2
    Conditional comments are meant only for Explorer on Windows. They are supported from Explorer 5 onwards.

    <!--[if IE]>
    According to the conditional comment this is Internet Explorer<br />
    <![endif]-->
    <!--[if IE 5]>
    According to the conditional comment this is Internet Explorer 5<br />
    <![endif]-->
    <!--[if IE 5.0]>
    According to the conditional comment this is Internet Explorer 5.0<br />
    <![endif]-->
    <!--[if IE 5.5]>
    According to the conditional comment this is Internet Explorer 5.5<br />
    <![endif]-->
    <!--[if IE 6]>
    According to the conditional comment this is Internet Explorer 6<br />
    <![endif]-->
    <!--[if IE 7]>
    According to the conditional comment this is Internet Explorer 7<br />
    <![endif]-->
    <!--[if gte IE 5]>
    According to the conditional comment this is Internet Explorer 5 and up<br />
    <![endif]-->
    <!--[if lt IE 6]>
    According to the conditional comment this is Internet Explorer lower than 6<br />
    <![endif]-->
    <!--[if lte IE 5.5]>
    According to the conditional comment this is Internet Explorer lower or equal to 5.5<br />
    <![endif]-->
    <!--[if gt IE 6]>
    According to the conditional comment this is Internet Explorer greater than 6<br />
    <![endif]-->
    
    Code (markup):
     
    Clive, Apr 8, 2010 IP