HTML| DOM Ins Object Last Updated : 17 Jan, 2022 Comments Improve Suggest changes Like Article Like Report The DOM ins Object is used to represent the HTML <ins> element. The ins element is accessed using getElementById().Properties: cite: It is used to set or return the value of the cite attribute of a inserted element.dateTime: It is used to sets or returns the value of the dateTime attribute of a inserted element. Syntax: document.getElementById("ID"); Where “id” is the ID assigned to the “ins” tag.Example-1: html <!DOCTYPE html> <html> <head> <title>DOM ins Object</title> <style> del { color: red; } ins { color: green; } h1 { color: green; } body { text-align: center; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>DOM ins Object</h2> <p>GeeksforGeeks is a <del>mathematical</del> <!-- Assigning id to 'ins' tag --> <ins id="GFG" datetime="2018-11-21T15:55:03Z"> computer </ins>scienceportal</p> <button onclick="myGeeks()">Submit</button> <p id="sudo"> <script> function myGeeks() { <!-- Return dateTime --> var g = document.getElementById("GFG").dateTime; document.getElementById("sudo").innerHTML = g; } </script> </body> </html> Output:Before Clicking On Button : After Clicking On Button: Example-2: ins Object can be created by using the document.createElement Method. html <!DOCTYPE html> <html> <head> <title> HTML DOM ins Object </title> <style> del { color: red; } ins { color: green; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>DOM ins Object</h2> <button onclick="myGeeks()"> Submit </button> <p id="sudo"></p> <script> function myGeeks() { // create 'ins' element. var g = document.createElement("INS"); var f = document.createTextNode("GeeksforGeeks"); g.appendChild(f); document.body.appendChild(g); } </script> </body> </html> Output:Before Clicking On Button : After Clicking On Button: Supported Browsers: The browser supported by DOM ins Object are listed below: Google ChromeInternet ExplorerFirefoxOperaSafari Comment More infoAdvertise with us M manaschhabra2 Follow Improve Article Tags : Misc Web Technologies HTML Web technologies HTML-DOM +1 More Practice Tags : Misc Similar Reads HTML | DOM Ol Object The DOM Ol Object is used to represent the HTML <ol> element . The ol element is accessed by getElementById(). To read more about lists check HTML | Lists. Properties: compact: It is used to set or return whether the size of the list would be displayed normal or not.reversed: It is used to set 2 min read HTML | DOM Style letterSpacing Property The Style letterSpacing property in HTML DOM is used to set the space between the characters. This property allows to set the required space between characters and also used to returns the space between characters. Syntax: It returns the letterSpacing property.object.style.letterSpacingIt used to se 2 min read HTML DOM Style minHeight Property The minHeight property in HTML DOM is used to set or return the minimum height of an element. This property affects only on block-level elements, absolute or fixed position elements. Syntax: It returns the minHeight property.object.style.minHeightIt is used to set the minHeight Property.object.style 2 min read HTML | DOM Style counterReset Property The Style counterReset property in HTML DOM is used to create or reset counters. This property is used with the counterincrement property and the content property.Syntax: It is used to return the counterReset property. object.style.counterResetIt is used to set the counterReset property. object.styl 1 min read HTML | DOM Style borderWidth Property The borderWidth property in HTML DOM is used to set or return the width of the border element. Syntax: It is used to set the border of width. object.style.borderWidth = valueIt returns the border width property. object.style.borderWidth Return Value: It returns the selected border element with the g 4 min read HTML | DOM Style justifyContent Property The style justifyContent property in HTML DOM is used to align the items horizontally when they are not able to use all the available space. It is used to set the position of the element. By default, the items are positioned at the beginning of the container. Syntax: It returns the justifyContent pr 3 min read HTML DOM Samp Object The Samp Object in HTML DOM is used to represent the <samp> element. The <samp> element can be accessed by using the getElementById() method. Syntax: document.getElementById("ID"); Where ID is assigned to the <samp> tag. Example 1: In this example, we will use the DOM Samp Object. 1 min read HTML DOM OptionGroup Object The HTML DOM OptionGroup object represents the <optgroup> element, used to group related options within a dropdown list (<select>). It helps organize options with a label for better user experience in forms. Property Values: This object contains two property values which are listed below 2 min read HTML DOM execCommand() Method The DOM execCommand() method in HTML DOM is used to execute a command specified by the user on the editable selected section. Syntax:document.execCommand( command, showUI, value )Parameters: This method accepts three parameters which are listed below:command: This parameter hold the name of command 3 min read HTML | DOM Style left Property The Style left property is used for setting or returning the left position of a positioned element. The Style left property is used for specifying the left position of the elements including padding, scrollbar, border, and margin. Syntax : To get the property:object.style.leftTo set the propertyobje 2 min read Like