Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE Conditional Comments: lt IE 7 = lte IE 6?

Are there any differences using

<!--[if lt IE 7]>...<![endif]-->

or

<!--[if lte IE 6]>...<![endif]-->

?

like image 762
lucas Avatar asked Apr 10 '10 22:04

lucas


People also ask

What is the reason for using conditional comments?

Conditional comments are conditional statements interpreted by Microsoft Internet Explorer versions 5 through 9 in HTML source code. They can be used to provide and hide code to and from these versions of Internet Explorer.

What is if IE in HTML?

--[if IE]> syntax, resolves the if and parses the content of the conditional comment as if it were normal page content. Since conditional comments use the HTML comment structure, they can only be included in HTML files, and not in CSS files.

What is IE function?

I.e. stands for the Latin id est, or 'that is,' and is used to introduce a word or phrase that restates what has been said previously.


2 Answers

There will be a difference if a rare, mythological species of browser dubbed as Internet Explorer 6.66 is found.

like image 104
kennytm Avatar answered Nov 15 '22 05:11

kennytm


Yes, they do the same thing.

Here's a reference from Microsoft.

like image 36
Taylor D. Edmiston Avatar answered Nov 15 '22 06:11

Taylor D. Edmiston