Developer’s Dilemma: Document Compatibility in IE

question
question-interview @Image courtesy of ddpavumba / FreeDigitalPhotos.net

Developer’s Dilemma: Document Compatibility in IE

Welcome to CodeSpread!

As a developer, when we test our website in Internet Explorer, we sometimes found that it is displaying in a different way than it was in other browsers like firefox or chrome.

The answer lies in the IE’s backward compatibility with older websites and early version of the browser.

All versions of Internet Explorer released after Internet Explorer 6 support up to three document modes and we usually handle these two modes:

  • Standards mode provides the greatest support for the industry standards, such as HTML5, CSS3, SVG, and others.Then, why not take advantage of this enhanced support, This is the preferred mode for new public websites.
  • Quirks mode displayed pages as if they were viewed with older versions of the browser. Why? because it emphasizes compatibility over standards compliance by supporting behavior found in earlier versions of Internet Explorer.

 

image

How application manages to keep a track of modes?

DOCTYPE> defines the document type of a webpage, which in turn determines how the page is displayed to the end-user. For example,to specify the HTML5 document type.


<!DOCTYPE html>

For earlier version of Internet Explorer, we can use the “x-ua-compatible” header, For example:


<meta http-equiv="x-ua-compatible" content="IE=9">

Important Points

In IE 9 and earlier versions, quirks mode restricted the webpage to the features supported by Microsoft Internet Explorer 5.5.

In IE 10, quirks mode conforms to the differences specified in the HTML5 specification.

Latest Addition

The following table shows the document modes that each version of Internet Explorer supports.

ref: http://msdn.microsoft.com/en-us/library/ff406036%28v=vs.85%29.aspx

image

Author: hershey

A passion for knowledge drives me to do programming, A passion for programming drives me to create something different, A passion for creation drives me to spread the knowledge.

Share This Post On

0 Comments

  1. nice superb explaination

    Post a Reply
  2. thanks for the tutorial
    I am having a problem.
    The feature “Create SQL server database” isn’t available , I can’t select it.
    Can you help, please ?

    Post a Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

More from CodeSpread:

  • POSTMan is required.POSTMan is required.Though it looks like a job posting but in developer’s world, it is a useful tool available as a chrome extension. When my friend referred it, I tried it and liked it so I recommend it every other d...
  • C#: My experience with const keywordC#: My experience with const keywordThere are numerous post on internet about 'what is const keyword in .net' or 'what is the difference between const keyword and read only' and I must say many might have already mugged it up like me...
  • What is taxonomy?What is taxonomy?I have heard this question so many times from my clients,my managers,my developers that it became really necessary for me to explain it here. But the challenge remains the same. Explain in a langua...
  • Asp.Net: More about CookiesAsp.Net: More about CookiesWe have seen, how our cookies looks in our last article Cookies Part 1. In this article, we will talk about their properties,limitations and technical part. Properties and Limitations Cook...
  • WCF Part 3: Direct from WCF kitchen.WCF Part 3: Direct from WCF kitchen.In the last two articles WCF:Part 1 and WCF Part 2, we have covered basic knowledge and terminologies of WCF.Now we will apply that knowledge to create a WCF service.There are lot of articles avail...
  • How to make a Connection between c# and mysql?How to make a Connection between c# and mysql?This is my first article on codespread.com, titled ‘Connection between c# and mysql’.Before going into details, we should know that mysql is a open source software for data base management system. ...
  • Try one ORM: Entity FrameworkTry one ORM: Entity FrameworkAs promised in the last article, We are going to share our experience of Entity Framework Ver 4.1. First of all, we have to add and configure Entity Framework in visual studio. We are going to u...
  • Agile Encounters UnpredictabilityAgile Encounters UnpredictabilityWhat is Agile? Wikipedia says “Agile software development is a group of software development methods based on iterative and incremental development, where requirements and solutions evolve through...