HTML | DOM meter Object Last Updated : 22 May, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report The DOM Meter Object is used to represent the HTML <meter> element. The meter element is accessed by getElementById().Properties: form: It belongs to one or more forms that it belongs too.max: It is used to specify the maximum value of a range.min: It is used to specify the minimum value of a range.high: It is used to specify the range considered to be a high value.low: It is used to specify the range value that is considered to be low.Optimum: It is used to specify the optimum value for the range.value: It is used to specify the required or actual value of the range.labels: It is used to return a list of <label> element that has been labeled for the gauge. Syntax: document.getElementById("ID"); Where “id” is the ID assigned to the “meter” tag.Example-1: html <!DOCTYPE html> <html> <head> <title>DOM Meter Object</title> </head> <body> <h1>GeeksforGeeks</h1> <h2>DOM Meter Object:</h2> Sachin's score: <!-- assigning id to meter with properties. --> <meter id="GFG" value="5" min="0" max="10"> 5 out of 10 </meter> <br>Laxma score: <!-- meter tag using value property. --> <meter value="0.5">50% from 100% </meter> <br> <button onclick="Geeks()"> Submit </button> <p id="sudo"></p> <script> function Geeks() { // Accessing 'meter' tag. var g = document.getElementById("GFG").value; document.getElementById("sudo").innerHTML = g; } </script> </body> </html> Output:Before Clicking On Button : After Clicking On Button: Example-2: Meter Object can be created by using the document.createElement method. html <!DOCTYPE html> <html> <head> <title>DOM Meter Object</title> <style> body { font-size: 20px; } </style> </head> <body style="text-align:center;"> <form> <h1 style="color:green">GeeksforGeeks</h1> <h2>DOM Meter Object</h2> <p id="GFG">Sachins score:</p> </form> <button onclick="myGeeks()">Submit</button> <script> function myGeeks() { // Creating meter object using // document.createElement. var g = document.createElement("METER"); g.setAttribute("min", "0"); g.setAttribute("max", "10"); g.setAttribute("value", "5"); document.body.appendChild(g); } </script> </body> </html> Output:Before Clicking On Button: After Clicking On Button: Supported Browsers: The browser supported by DOM Meter Object are listed below: Google ChromeFirefoxOperaSafari Comment More infoAdvertise with us Next Article HTML DOM TransitionEvent M manaschhabra2 Follow Improve Article Tags : Misc Web Technologies HTML HTML-DOM Practice Tags : Misc Similar Reads HTML | DOM TableHeader Object The TableHeader object in HTML DOM is used to represent the HTML <th> element. The <th> element can be accessed by using getElementById() method. Syntax: It is used to access <th> element. document.getElementById("id"); It is used to create <th> element. document.createElemen 3 min read HTML | DOM Input Text Object The Input Text Object in HTML DOM is used to represent the HTML <input> element with type="text" attribute. The <input> element with type="text" can be accessed by using getElementById() method. Syntax: It is used to access input text object. document.getElementById("id");It is used to c 3 min read HTML DOM TransitionEvent The HTML DOM TransitionEvent represents events that occur when a CSS transition starts, ends, or is canceled. This event is fired at the end of a CSS transition (i.e., when the transition finishes) or when the transition is canceled. It provides information about the transition, such as the name of 2 min read HTML | DOM Style maxHeight Property The maxHeight property set/return the maximum height of an element. The maxHeight property affect only on block-level elements, absolute or fixed position elements. Syntax: It is used to set the maxHeight property:object.style.maxHeight = "none|length|%|initial|inherit"It is used to return the maxHe 2 min read HTML | DOM Style borderTopStyle Property The DOM Style borderTopStyle property is used to set or return the top border style of an element. Syntax: To get the borderTopStylePropertyobject.style.borderTopStyleTo set the borderTopStylePropertyobject.style.borderTopStyle = "none | hidden | dotted | dashed | solid | double | groove |ridge | in 7 min read HTML | DOM Style transitionDuration Property The Style transitionDuration property in HTML DOM is used to set or return the length of time(in seconds or milliseconds) to complete the transition effect. Syntax: Return the transitionDuration property:object.style.transitionDurationSet the transitionDuration:object.style.transitionDuration = "tim 1 min read HTML ondragstart Event Attribute HTML ondragstart Event Attribute is used when the user wants to drag the text or element. It is simply the process in which we press on the desired text to drag and drop them to a different location. Basically, it Initiates when the user starts dragging an element and is used to set data to be trans 3 min read HTML | DOM Style animationDelay Property The animationDelay Property in HTML DOM is used to set or returns the delay after which the animation should start. Syntax: It is used to set the animationDelay property:object.style.animationDelay = "time|initial|inherit"It is used to return the animationDelay property:object.style.animationDelay P 3 min read HTML | DOM Window parent Property HTML DOM Window parent Property returns the parent window of the current window. It is a read-only property. If a window does not have a parent, then it refers to itself. Syntax: window.parent Return Value: Parent Window object of current window. If there is no parent window then it refers to itself 1 min read HTML DOM isDefaultNamespace() Method The DOM isDefaultNamespace() method is used to return boolean true if the specified namespace is default otherwise, it returns boolean false. The URI of the namespace required can be checked using the namespaceURI string. Syntax:node.isDefaultNamespaceReturn Value: It returns a boolean value true if 1 min read Like