html - Conditional comments syntax -


can explain me difference between first , second conditional comment syntax?

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

why second 1 use use <!--> syntax before <html> tag? can use following syntax 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!

no, second setup not same first.

in first, <!--[if gt ie 8]><!--><html class="no-js"><!--<![endif]--> used, let other browsers (the one's not understand conditional comments) have <html class="no-js">, second setup won't

src: https://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -