Sajid Nawaz
Sajid Nawaz

Reputation: 41

Doctype is commented out in Internet explorer 11

I have red all the questions and answers on this issue. Still it didn't help. In my IE 11, the doctype is always commented out.

I think IE is Rendering the page in compatibility view. I am assuming this because some html properties such as border-radius are red underlined as if IE 11 not recognizing it, so I think that IE is not Rendering the page in Standard mode, though in developers tool Edge is selected.

I have chekced all the compatibility Settings. Everythings is unchecked and fine.

The Website was previously running on IE8 and was optimised for that.

Upvotes: 2

Views: 2740

Answers (2)

Robert Ngetich
Robert Ngetich

Reputation: 1134

I added the following meta-tag to my webpage and it works for me:

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

I found it on this post

Upvotes: 3

uniking
uniking

Reputation: 212

Could you please post a code snippet of your current HTML document?

I would try to do it like this:

<!DOCTYPE html>

Upvotes: 4

Related Questions