What is the difference between content=“IE=7; IE=9” and content=“IE=7, IE=9”

On my HTML, have used the meta tag as below for some font issues. I just want to know:

Are these both meta tag meaning the same? Or each one is different?

<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9" /> [separated by comma]

<meta http-equiv="X-UA-Compatible" content="IE=7; IE=9" /> [separated by semicolon]

Please explain on this.



The correct form, as Microsoft defines in MSDN is using a semicolong instead of a single comma:

<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9" />

Here the piece of text:

Note: [...] You can also use the content attribute to specify multiple document compatibility modes; this helps to ensure that web pages display consistently in future versions of the browser. To specify multiple document modes, set the content attribute to identify such modes to use. Use a sign semicolon to separate the modes together.

MSDN Resource


Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.