Conditional comments

Discussion in 'HTML & Website Design' started by Akhleshsrm, May 25, 2016.

  1. #1
    As i know that conditional comments are supported only by Internet Explorer and comments are ignored by browsers.My question is that-
    If you put a conditional comment in a html document and open it with google chrome ,it will be displayed because it is only supported by IE not by GOOGLE chrome?
     
    Akhleshsrm, May 25, 2016 IP
  2. Blizzardofozz

    Blizzardofozz Well-Known Member

    Messages:
    132
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    118
    #2
    Well yeah but you really need them only for IE... as far as I know. It won't be displayed by other browser. Just try it :) It's like that in web development and programming - you try and try and test.
     
    Blizzardofozz, May 25, 2016 IP
  3. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #3
    Conditional comments were the fad a few years back - nowadays, there should be absolutely no need for them, whatsoever, unless you're supporting long dead browsers. On the same note, having separate styleseets for IE and such: No. Just no.
     
    PoPSiCLe, May 25, 2016 IP