HTML DOM Style borderBottom Property Last Updated : 12 Jun, 2023 Comments Improve Suggest changes Like Article Like Report The DOM style borderBottom property is used to set or return the three different border-bottom properties such as border-bottom-width, border-bottom-style, and border-bottom-color of an element. Syntax: It returns the borderBottom Property.object.style.borderBottomIt is used to set the borderBottom property.object.style.borderBottom = "width style color|initial|inherit" Parameter: width: It holds the width of the bottom border.style: It sets the bottom border style.Color: Sets the color of the bottom border.Initial: Sets the property as its default.inherit: Inherit the property from its parent. Return Value: It returns a string value that represents the width, style, and/or color of the bottom border of an element. Example: In this example, we are using borderBottom property. HTML <!DOCTYPE html> <html> <head> <title>DOM Style borderBottom Property </title> </head> <body> <center> <h1 style="color:green;width:50%;" id="sudo"> GeeksForGeeks </h1> <h2>DOM Style borderBottom Property </h2> <br> <button type="button" onclick="geeks()"> Submit </button> <script> function geeks() { document.getElementById("sudo").style.borderBottom = "thick solid green"; } </script> </center> </body> </html> Output: Example 2: In this example, we are using borderBottom property. html <!DOCTYPE html> <html> <head> <title>DOM Style borderBottom Property</title> </head> <body> <center> <h1 style="color:green;"> GeeksForGeeks </h1> <h2>DOM Style borderBottom Property </h2> <h3 style="border:2px solid red; width:50%;" id="sudo"> geeksforgeeks </h3> <br> <button type="button" onclick="geeks()"> Submit </button> <script> function geeks() { document.getElementById("sudo").style.borderBottom = "thick dotted green"; } </script> </center> </body> </html> Output: Supported Browsers: The browser supported by DOM Style borderBottom property are listed below: Google Chrome 1.0 and aboveEdge 12.0 and aboveInternet Explorer 4.0 and aboveFirefox 1.0 and aboveOpera 3.5 and aboveSafari 1.0 and above 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 defaultView Property The DOM defaultView property in HTML is used to return the document Window Object. The window object is the open windows in the browser. Syntax:document.defaultView Return Value: It is used to return the current Window Object. Example 1: In this example use the defaultView property to get the window 2 min read HTML DOM forms Collection The DOM forms collection is used to return the collection of all <form> elements in a HTML document. The form elements are sorted as they appear in the source code. Syntax: document.forms Properties: It returns the number of form in the collection of elements. Methods: The DOM forms collection 4 min read HTML DOM referrer Property The DOM referrer property in HTML is used to return the URI of the page that linked to the current page. If the user navigates to the page directly or through a bookmark, then this value is an empty string. Syntax:document.referrer The below program illustrates the referrer property in HTML: Example 3 min read HTML DOM getNamedItem() Method The DOM getNamedItem() method in HTML is used to return the attribute node from the NamedNodeMap object.Syntax: namednodemap.getNamedItem( nodename )Parameter's Value: This method contains a single parameter nodename which is mandatory. The nodename is returned from the NamedNodeMap object. Return V 2 min read HTML DOM createEvent() Event Method The createEvent() method in HTML creates an event object of the specified type. The created event must be initialized before use. Syntax:document.createEvent(event_type)event_type: It is the required parameter and is used to specify the type of event. There are many types of events which are listed 2 min read HTML DOM getElementsByTagName() Method The getElementsByTagName() method in the HTML DOM allows the selection of elements by their tag name. It returns a collection of elements with the specified tag name within the specified document or element. To extract any info just iterate through all the elements using the length property. Syntax: 3 min read HTML DOM length Property The DOM length property in HTML is used to get the number of items in a NodeList object. A NodeList is a collection of child Nodes. For example, the NodeList of the body will contain all the child nodes in the body i.e. paragraphs, comments, headings, script, etc.Syntax: nodelist.lengthReturn Value: 2 min read HTML DOM value Property The DOM value property in HTML is used to set or return the value of any attribute.Syntax: It returns the attribute value. attribute.valueIt is used to set a value to the property. attribute.value = valueProperty Value: value: It defines the value of the attribute.Return Value: It returns a string v 2 min read HTML DOM normalize() Method The normalize() method in HTML is used to merge the adjacent text nodes with the first text node and flush out the empty nodes. The normalize() method does not require any parameter. Syntax: node.normalize() Example 1: In this example, we will use normalize() method. HTML <!DOCTYPE html> <h 2 min read HTML DOM links Collection The DOM links collection is used to return the collection of all <a> and <area> elements with the "href" attribute in the HTML document. The elements in the collection are sorted as they appear in the sourcecode. Syntax: document.links Properties: It contains a single property length whi 4 min read Like