HTML | DOM Progress Object Last Updated : 23 May, 2022 Comments Improve Suggest changes Like Article Like Report The Progress Object in HTML DOM is used to represent the HTML <progress> element. The <progress> element can be accessed by using getElementById() method.Property Values: labels: It returns the list of progress bar labels.max: It is used to set or return the progress bar value of the max attribute.value: It represents the amount of work that is already completed.position: It returns the current position of progress bar. Syntax: document.getElementById("ID"); Where ID is assigned to the <progress> element.Example 1: html <!DOCTYPE html> <html> <head> <title> HTML DOM Progress Object </title> </head> <body> <h1 style="color:green;"> GeeksForGeeks </h1> <h2>DOM Progress Object</h2> Downloading progress for a song: <progress id = "GFG" value = "57" max = "100"> </progress> <br><br> <button onclick = "myGeeks()"> Submit </button> <p id = "sudo"></p> <script> function myGeeks() { var pr = document.getElementById("GFG").value; document.getElementById("sudo").innerHTML = pr; } </script> </body> </html> Output: Before Click on the Button: After Click on the Button: Example 2: Progress Object can be created by using the document.createElement Method. html <!DOCTYPE html> <html> <head> <title> HTML DOM Progress Object </title> </head> <body> <h1 style = "color:green;"> GeeksForGeeks </h1> <h2>DOM Progress Object</h2> <P id = "GFG"> Downloading progress for a song: </p> <button onclick = "myGeeks()"> Submit </button> <script> function myGeeks() { var g = document.createElement("PROGRESS"); g.setAttribute("value", "57"); g.setAttribute("max", "100"); document.getElementById("GFG").appendChild(g); } </script> </body> </html> Output: Before Click on the Button: After Click on the Button: Supported Browsers: The browser supported by DOM Progress 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 Style fontWeight Property The fontWeight style property in HTML DOM is used to set or return the thickness of characters in a word that should appear. Syntax: It returns the fontWeight property.object.style.fontWeightIt sets the fontWeight Property.object.style.fontWeight = "normal | lighter | bold | bolder | value | initial 2 min read HTML | DOM Pre Object The DOM Pre Object is used to represent the HTML <pre> element. The pre element is accessed by getElementById().Properties: width: It is used to set or return the value of the width attribute of the pre element. Syntax: document.getElementById("ID"); Where âidâ is the ID assigned to the âpreâ 1 min read 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 Like