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

what does this mean? why are they applying it only to IE(internet explorer)?

Arvind kr
  • 103
  • 1
  • 3
  • 12
  • 2
    See this answer: http://stackoverflow.com/questions/6724515/what-is-the-purpose-of-the-html-no-js-class – Gohn67 Oct 13 '14 at 15:39
  • This query was introuced by Microsoft, for cross browsing. Fortunatly it wasn't taken by W3C. So it does exists only in IE. – Reporter Oct 13 '14 at 15:41
  • Sorry, I think I actually misread your question. Are you talking about the comment conditionals or the `class="no-js"` attribute? – Gohn67 Oct 13 '14 at 15:42
  • i am asking what does those comment conditionals mean? – Arvind kr Oct 13 '14 at 15:44

1 Answers1

0

There is no JavaScript there.

Those are conditional comments: a hack supported by old versions of IE that misapplied HTML's comment syntax to do browser detection.

Further reading:

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335