dimanche 13 novembre 2016

Conditional comments sintax

Can anyone explain me the difference between first and second conditional comment sintax?

<!--[if lt IE 8]><html class="no-js lt-ie8"><![endif]-->
<!--[if gt IE 8]><!--><html class="no-js"><!--<![endif]-->

Why the second one use use the <!--> sintax before <html> tag? Can i use the following sintax with the same result?

<!--[if lt IE 8]><html class="no-js lt-ie8"><![endif]-->
<!--[if gt IE 8]><html class="no-js"><![endif]-->

Thanks in advance!

Aucun commentaire:

Enregistrer un commentaire