Forum Moderators: open
<!-- [if gte IE 8]>
*** allow IE8+ and all other user-agents ***
<![endif]-->
<![if gte IE 8]>
***allow IE8+ et al ***
<![endif]>
<![if gte IE 8]>
<li><a href="js_planets_gallery.shtml" class="textLink">Planets of the Solar System</a>:
<abbr title="HyperText Markup Language">HTML</abbr>,
<abbr title="Cascading Style Sheet">CSS</abbr>,
<abbr title="Document Object Model">DOM</abbr> scripting using JavaScript</li>
<![endif]>
Fixing Validation Errors
The downlevel-revealed conditional comment syntax is flagged as invalid HTML by some validation services. Additional characters can be added to construct a valid HTML Comment before and after the HTML content to be revealed.
<!--[if !IE]>--> HTML <!--<![endif]-->
In the example above, the negative conditional expression prevents Internet Explorer from displaying the HTML content within the downlevel-revealed conditional comment block. However, if the conditional expression evaluates to true, the closing "-->" of the first comment appears along with the HTML content in Internet Explorer. To hide these characters from Internet Explorer users, add "<!" as follows:
<!--[if !IE]><!--> HTML <!--<![endif]-->