Returns the MIME type that the document is being rendered as. This may come from HTTP headers or other sources of MIME information, and might be affected by automatic type conversions performed by either the browser or extensions. Syntax contentType = document.contentType; contentType is a read-only property. Notes This property is unaffected by <meta> elements. Specifications DOMThe definition of 'Document.contentType' in that specification. Browser compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. Desktop Mobile FeatureChromeEdgeFirefoxInternet ExplorerOperaSafariBasic support Yes ? Yes ? ? ?FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung InternetBasic support Yes Yes ? Yes ? ? ?DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung InternetBasic support Non-standard Full support Yes ? Full support Yes ? ? ? Full support Yes Full support Yes ? Full support Yes ? ? ? Legend Full support Full support Compatibility unknown Compatibility unknownNon-standard. Expect poor cross-browser support.Non-standard. Expect poor cross-browser support.