0

Is it safe to remove the <DOCTYPE ...> in post-IE area?

I don't need to support IE or other outdated browsers.

I could not find anything about this topic here: https://caniuse.com/

BTW: I don't trust any blog article or Stackoverflow answer which is from 2019 or older for this question. Today we don't need to support IE, this was different in the past.

guettli
  • 25,042
  • 81
  • 346
  • 663
  • Does this answer your question? [Is required](https://stackoverflow.com/q/37959963/11683) – GSerg Jul 07 '22 at 09:04
  • 2
    [Link to the specification](https://html.spec.whatwg.org/multipage/syntax.html#the-doctype) for reference. I think this is really one of those "Conventionally it should be there, but in practice it won't make much difference", but it will be interesting to see if anyone knows of any problems when skipping it in a modern browser. – DBS Jul 07 '22 at 09:04
  • @DBS https://en.wikipedia.org/wiki/Quirks_mode#Comparison_of_document_types – GSerg Jul 07 '22 at 09:10
  • @GSerg I don't trust any blog article or Stackoverflow answer which is from 2019 or older for this question. Today we don't need to support IE, this was different in the past. – guettli Jul 07 '22 at 09:29
  • 1
    @guettli "All browsers need the doctype" does not involve IE. The quirks mode and the almost-standard mode did not go anywhere. – GSerg Jul 07 '22 at 09:35
  • 1
    Then read the standard if older posts and articles don't do it for you. A doctype is *required* and you will be in a world of constant problems without one. – Rob Jul 07 '22 at 09:53

0 Answers0