HTML DOM DD Object Last Updated : 13 Jun, 2023 Comments Improve Suggest changes Like Article Like Report The DOM DD Object is used to represent the HTML <DD> element. The DD element is accessed by getElementById(). Syntax: document.getElementById("ID"); Where “id” is the ID assigned to the “dd” tag. Example 1: In this example, we will use DOM DD Object. HTML <!DOCTYPE html> <html> <head> <title>HTML dd Tag</title> <style> h1 { color: green; } h1, h2 { text-align: center; } body { width: 70%; } dt { color: red; } </style> </head> <body> <h1>GeeksForGeeks</h1> <h2>DOM <dd> Object</h2> <dl> <dt>Geeks Classes</dt> <!-- Assigning id to dd --> <dd id="GFG"> It is an extensive classroom programme for enhancing DS and Algo concepts. </dd> <br> <dt>Fork Python</dt> <dd> It is a course designed for beginners in python. </dd> <br> <dt>Interview Preparation</dt> <dd> It is a course designed for preparation of interviews in top product based companies. </dd> </dl> <button onclick="myGeeks()"> Submit </button> <p id="sudo"> </p> <script> function myGeeks() { <!-- Accessing of dd object. --> let g = document.getElementById("GFG").innerHTML; document.getElementById("sudo").innerHTML = g; } </script> </body> </html> Output: Example 2: DD Object can be created by using the document.createElement Method. HTML <!DOCTYPE html> <html> <head> <title>HTML dd Tag</title> <style> h1 { color: green; } h1, h2 { text-align: center; } body { width: 70%; } dt { color: red; } </style> </head> <body> <h1>GeeksForGeeks</h1> <h2>DOM <dd> Object</h2> <button onclick="myGeeks()">Submit</button> <dl id="GFG"> <dt>Geeks Classes</dt> </dl> <script> function myGeeks() { let g = document.createElement("DD"); let f = document.createTextNode( "It is an extensive classroom for" + " enhancing DS and Algo concepts."); g.appendChild(f); let w = document.getElementById("GFG"); w.appendChild(g); } </script> </body> </html> Output: Supported Browsers: The browser supported by DOM DD 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 Style animation Property The style animation property makes it possible to animate transitions from one CSS style to another CSS style. It configures the timing, delay, duration, and other details of how the sequence of animation should progress. The animation contains two components, one is CSS describing the component and 3 min read HTML | DOM WheelEvent deltaY Property The WheelEvent.deltaY property in HTML is used to return a positive double value when the web page is scrolled down, and a negative double value when the page is scrolled up, or else it returns zero. It is a read-only property. Syntax: event.deltaY Return Value: It returns a double value which indic 1 min read HTML DOM Style borderBottomRightRadius Property The DOM borderBottomRightRadius property is used to select any element from the DOM tree and set the style of the radius of the bottom-right corner of its border. Syntax : It returns the borderBottomRightRadius Property.object.style.borderBottomRightRadiusIt is used to set the borderBottom property. 2 min read HTML | DOM Style borderBottomWidth Property The style borderBottomWidth property in HTML DOM is used to set or return the width of bottom border of an element. Syntax: It is used to return the width of bottom border.object.style.borderBottomWidthIt is used to set the width of the bottom border.border-bottom-width: "medium|thin|thick|length|in 2 min read HTML DOM Style animationDuration Property The Style animationDuration property in HTML DOM is used to set the time interval to complete one cycle of an animation. Syntax: It returns the animationDuration property.object.style.animationDurationIt sets the animationDuration property.object.style.animationDuration = "time|initial|inherit" Retu 3 min read HTML DOM offsetTop Property The DOM offsetTop property is used to return the top position which is relative to the top of the offsetParent element. Syntax: object.offsetTop Return Value: A number in the pixel unit represents the top position of the element. Example: In this example, we will use DOM offsetTop property HTML < 1 min read HTML DOM Style animationIterationCount Property The Style animationIterationCount property in HTML DOM is used to set or return how many times an animation should be played. Syntax: It is used to return the animationIterationCount property.object.style.animationIterationCountIt is used to set the animationIterationCount property.object.style.anim 2 min read HTML DOM WheelEvent deltaX Property The WheelEvent.deltaX property in HTML is used to return a positive double value when the web page is scrolled horizontally along the left or right direction. If the page is scrolled to the right it returns a positive value, and a negative double value when scrolled to the left, else it returns zero 1 min read HTML DOM offsetHeight Property The DOM offsetHeight property is used to return the layout height of an element as an integer. It is measured in pixels. It includes height, border, padding, and horizontal scrollbars but not margin. If the element is hidden then it returns 0. Syntax: element.offsetHeight Return Value: It returns th 2 min read HTML DOM Style borderColor Property The DOM Style borderColor property specifies the color of the element's border. It may be given explicitly, inherit from the parent or by default it will take the default value. Syntax: To get the border color property:object.style.borderColorTo set the border color property:object.style.borderColor 3 min read Like