HTML DOM documentMode Property Last Updated : 02 Sep, 2024 Comments Improve Suggest changes Like Article Like Report The DOM documentMode property in HTML is an IE8 property that is used to detect the document mode used by the browser to render the current page. It returns a different number depending on the mode of the page in which it is being rendered because IE8 can render a page in various modes depending on the page's doctype plus the presence of certain HTML elements. This property returns certain values depending on which version of IE we are using. If the page is running in IE5 then value displayed will be - 5If the page is running in IE7 then value displayed will be - 7If the page is running in IE8 then value displayed will be - 8Note:By default, the page is rendered in IE5 mode if !DOCTYPE is not specified. Syntax:document.documentModeExample: In this example we displays a page with a title and headings, and uses JavaScript to show the current document mode of Internet Explorer by accessing the document.documentMode property and displaying its value. html <!DOCTYPE html> <html> <head> <title>DOM documentMode Property</title> </head> <body style="text-align: center;"> <h1 style="color:green;">GeeksforGeeks</h1> <h2>DOM documentMode Property</h2> This document is displayed in IE <span id="geek"></span> mode. <script> let docMode = document.documentMode; document.getElementById("geek").innerHTML = docMode; </script> </body> </html> Output:Supported Browsers: The documentMode property is only supported by Internet Explorer. Comment More infoAdvertise with us V Vishal Chaudhary 2 Follow Improve Article Tags : Web Technologies HTML CSS-Properties Similar Reads CSS font-variant Property The font-variant property is used to convert all lowercase letters into uppercase letters. However, the converted upper letters appear too small compared to the original uppercase letters. Syntax: font-variant: normal|small-caps|initial; Default Value: normal Property Values:normal: It has a default 2 min read CSS max-width Property The max-width property in CSS defines the maximum width an element can occupy, ensuring that it doesn't exceed a specified width. This property plays a crucial role in responsive design, allowing the content to adjust within a defined limit. It helps in creating flexible layouts that look great on v 4 min read CSS flex-flow Property The flex-flow property is a sub-property of the flexible box layout module and also a shorthand property for flex-wrap and flex-direction. Note:The flex property is useless when the element is not a flexible item. Syntax:flex-flow: flex-direction flex-wrap;Values of flex-flow property:row nowrap: It 8 min read CSS page-break-after Property The page-break-after property in CSS is used to add a page-break after the stated element. Similarly, page-break-before, page-break-after, and page-break-inside all three properties are instrumental in determining and hence defining how the resultant document would be when printed. Note: The page-br 10 min read CSS max-height Property The max-height property in CSS is used to set the maximum height of an element. If the content of the element is larger than the specified maximum-height then the content will overflow otherwise it has no effect. If the content of the element is smaller then it has no effect. The height property val 3 min read CSS min-height Property The min-height property in CSS is used to set the minimum height of an element. The min-height property is used when the content of the element is smaller than the min-height and if the content is larger than the min-height then it has no effect. This property ensures that the value of the height pr 3 min read CSS margin-right Property The margin-right property in CSS is used to set the right margin of an element. It sets the margin area on the right side of the element. Negative values are also allowed. The default value of the margin-right property is zero. Syntax:margin-right: length|auto|initial|inherit;Property Value:length: 3 min read CSS border-color Property The CSS border-color property allows developers to define the color of an element's border, enhancing the visual design of a webpage. It works in conjunction with the border property to provide control over the appearance of borders using various color values like-named colors, hex codes, or RGB val 5 min read CSS box-sizing Property The CSS box-sizing property controls how an element's size is calculated. When using the border-box model, the padding and border are included in the elementâs total width and height, making it easier to manage the layout.Syntaxbox-sizing: content-box | border-box;Property ValuesHere is a descriptio 3 min read CSS margin-left Property The margin-left property in CSS is used to set the width of the margin on the left of the desired element. Negative values of this property are allowed.A positive value is used when it is desired that the margin is farther away from its neighbors.A negative value is used when it is desired that the 3 min read Like