V
V
Vladimir Golub2016-04-06 04:29:17
HTML
Vladimir Golub, 2016-04-06 04:29:17

How to correctly register compatibility with IE?

It is necessary that on all browsers below IE 9 this code should not be visible.
I wrote, but the validator swears that this is not a comment.

<![if gte IE 9]>
<div class="review_border_top hidden-sm hidden-xs">
</div>
<div class="review_border_bottom hidden-sm hidden-xs">
<div>
</div>
</div>
<![endif]>

Error: Bogus comment.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey delphinpro, 2016-04-06
@RazerVG

<!--[if gte IE 9]><!-->
            some code
<!--<![endif]-->

Z
zooks, 2016-04-06
@zooks

<!--[if IE]>
<link href="ie.css" rel="stylesheet">
<![endif]-->

Read more here: zooks.ru/web/355

R
Rampages, 2016-04-06
@Rampages

More details:
1. w3.org - comments (clause 8.1.6 Comments)
2. htmlbook.ru - comments
About conditional comments:
1. Conditional comments on MSDN
2. Deprecation of conditional comments in IE 10 and higher

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question