HTML | DOM DList Object Last Updated : 24 Dec, 2021 Comments Improve Suggest changes Like Article Like Report The DOM DList Object is used to represent the HTML <dl> tag. The Dlist element is accessed by getElementById(). Syntax: document.getElementById("ID");< Where “id” is the ID assigned to the “dl” tag.Example-1: html <!DOCTYPE html> <html> <head> <title>HTML DOM DList Object</title> <style> h1, h2 { text-align: center; } h1 { color: green; } dl { margin-left: 20%; } button { margin-left: 30%; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>DOM DList Object</h2> <!-- Assigning id to 'dl' tag --> <dl id="GFG"> <dt>GeeksforGeeks</dt> <dd>A Computer Science Portal For Geeks</dd> </dl> <button onclick="myGeeks()">Submit</button> <p id="sudo"></p> <script> function myGeeks() { <!-- Accessing 'dl'. --> var g = document.getElementById("GFG").innerHTML; document.getElementById("sudo").innerHTML = g; } </script> </body> </html> Output: Before Clicking On Button: After Clicking On Button: Example-2: DList Object can be created by using the document.createElement method. html <!DOCTYPE html> <html> <head> <title>HTML DOM DList Object </title> <style> h1, h2 { text-align: center; } h1 { color: green; } dl { margin-left: 20%; } button { margin-left: 30%; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>DOM DList Object</h2> <button onclick="myGeeks()">Submit</button> <script> function myGeeks() { var g = document.createElement("DL"); g.setAttribute("id", "GFG"); document.body.appendChild(g); var f = document.createElement("DT"); var text = document.createTextNode("GeeksForGeeks"); f.appendChild(text); document.getElementById("GFG").appendChild(f); var z = document.createElement("DD"); var text2 = document.createTextNode( "A Computer Science PortaL For Geeks"); z.appendChild(text2); document.getElementById("GFG").appendChild(z); } </script> </body> </html> Output:Before Clicking On Button: After Clicking On Button: Supported Browsers: The browser supported by DOM DList Object are listed below. Google ChromeInternet ExplorerFirefoxOperaSafari Comment More infoAdvertise with us M manaschhabra2 Follow Improve Article Tags : Misc Web Technologies HTML HTML-DOM Practice Tags : Misc Similar Reads HTML DOM Nav Object The DOM nav object is used to represent the HTML <nav> element. The<nav> element is accessed by getElementById(). Syntax: document.getElementById("id") Where id is assigned to the <nav> tag. Note: The Nav Object is not supported by Internet Explorer 8 and earlier versions. Example 1 min read HTML DOM insertAdjacentText() Method The insertAdjacentText() inserts a provided text at one of the following positions. afterbegin:afterend:beforebegin:beforeend: Syntax: node.insertAdjacentText(position, text) Parameters: This method requires 2 parameters. position: A position relative to the element. The legal values are:afterbegin: 1 min read HTML DOM Style borderImage Property The DOM Style borderImage Property in HTML is a shorthand property used for setting the borderImageSource, borderImageSlice, borderImageWidth,borderImageOutset, and borderImageRepeat properties. Syntax: It is used to return the borderImage property. object.style.borderImageIt is used to set the bord 2 min read HTML DOM stopPropagation() Event Method The stopPropagation() method is used to stop the propagation of event calling. That is a parent event is called we can stop the propagation of calling its children by using the stopPropagation() method and vice-versa. Syntax: event.stopPropagation() Return Value: It does not return any value. Exampl 2 min read HTML DOM Emphasized Object The HTML DOM Emphasized object represents the <em> element, used to emphasize text, typically rendering it in italics. It can be accessed and manipulated through JavaScript to alter its content or styling.Syntax:document.getElementById("ID");Example: Clicking the "Submit" button changes the em 1 min read HTML DOM type Event Property The type event property in HTML DOM is used to return the type of the triggered event. It returns a string that represents the type of the event. The events can be keyboard events or mouse events. Syntax: event.type Return Value: It returns a string that represents the type of event. Example: In thi 1 min read HTML DOM timeStamp Event Property The timeStamp property in the HTML DOM refers to a read-only property that returns the time (in milliseconds) at which an event was created. The value is measured relative to the UNIX epoch (January 1, 1970, 00:00:00 UTC). This property is commonly used to determine the timing of events and can be u 1 min read HTML | DOM Details Object The DOM Details Object is used to represent the HTML <details> element. The Details element is accessed by getElementById(). Properties: open: The details tag has an attribute called 'open' which is used to display the hidden information by default. Syntax: document.getElementById("ID"); Where 2 min read HTML DOM cancelable Event Property The cancelable event property indicates whether the event's default action can be prevented. If the value is true, the default action can be prevented using event.preventDefault(). If false, the default action cannot be prevented. It is a read-only property.It is a read-only boolean property.Syntax: 1 min read HTML DOM Style borderImageRepeat Property The borderImageRepeat style property in HTML DOM is used to set or return the borderImageRepeat property. It specifies whether the border image should repeat to fill the area, stretched to fill the area, set to the initial value, inherit property from its parent, etc. Depending on the need it will b 4 min read Like