Skip to content

Commit 2c35799

Browse files
committed
IE compatibility mode
1 parent a44dc15 commit 2c35799

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

README.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1959,7 +1959,42 @@ The **value** property reflects the current text-content inside the input box, w
19591959
<b><a href="#">↥ back to top</a></b>
19601960
</div>
19611961

1962-
#### Q. ***How do you set IE compatibility mode?***
1962+
## Q. ***How do you set IE compatibility mode?***
1963+
1964+
**X-UA-Compatible** is a document mode meta tag that allows to choose what version of Internet Explorer the page should be rendered as. It is used by Internet Explorer 8 to specify whether a page should be rendered as IE 7 (compatibility view) or IE 8 (standards view).
1965+
1966+
```html
1967+
<html>
1968+
<head>
1969+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
1970+
<title>My Web Page</title>
1971+
</head>
1972+
<body>
1973+
<p>Content goes here.</p>
1974+
</body>
1975+
</html>
1976+
```
1977+
1978+
Emulating the version tells the browser to use the DOCTYPE to determine how to render content. pages without a DOCTYPE will be rendered in quirks mode. Edge mode tells Windows Internet Explorer to display content in the highest mode available, which actually breaks the "lock-in" paradigm. With Internet Explorer 8, this is equivalent to IE8 mode.
1979+
1980+
**Setting the Meta Element**
1981+
1982+
The meta element includes a content attribute that enables you to specify the mode that content is rendered in for the webpage, as the following table shows.
1983+
1984+
|Value |Rendering mode |
1985+
|---------------|------------------------------------------------------------|
1986+
|IE=edge |Display content in the highest mode available |
1987+
|IE=9 |Use the Windows Internet Explorer 9 standards rendering mode|
1988+
|IE=8 |Use the Internet Explorer 8 standards rendering mode |
1989+
|IE=7 |Use the Windows Internet Explorer 7 standards rendering mode|
1990+
|IE=5 |Use the Microsoft Internet Explorer 5 standards rendering mode|
1991+
1992+
*Note: It is recommended that Web developers restrict their use of Edge mode to test pages and other non-production uses because of the possible unexpected results of rendering page content in future versions of Windows Internet Explorer.*
1993+
1994+
<div align="right">
1995+
<b><a href="#">↥ back to top</a></b>
1996+
</div>
1997+
19631998
#### Q. ***What is an optional tag?***
19641999
#### Q. ***Have you used different HTML templating languages before?***
19652000
#### Q. ***How do you change the direction of html text?***

0 commit comments

Comments
 (0)