HTML | DOM Style borderBottomColor Property Last Updated : 09 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The Style borderBottomColor property in HTML DOM is used to set or return the color of bottom border of an element. Syntax: It returns the borderBottomColor property. object.style.borderBottomColorIt is used to set the borderBottomColor property. object.style.borderBottomColor = "color|transparent|initial| inherit" Property Values: color: It specifies the bottom border color of corresponding element. The default color is black.transparent: It sets the bottom border color of corresponding element to transparent.initial: It sets the borderBottomColor property to its default value.Inherit: This property is inherited from its parent element. Return Value: It returns a string which represents the color of bottom border of an element. Example 1: This example changes the color of bottom border to black. HTML <!DOCTYPE html> <html> <head> <title> Style borderBottomColor Property </title> <style> #GFG_Div { width: 400px; margin-left: 210px; border: thick solid green; } </style> </head> <body align="center"> <div id="GFG_Div"> <h1>GeeksforGeeks</h1> <h2> DOM Style borderBottomColor Property </h2> <p> Click to change the bottom border color of an element </p> </div> <br> <button type="button" onclick="myGeeks()"> Click to change </button> <!-- Script to use Style borderBottomColor Property --> <script> function myGeeks() { document.getElementById("GFG_Div") .style.borderBottomColor = "blue"; } </script> </body> </html> Output: Before clicking the button: After clicking the button: Example 2: This example changes the color of bottom border to transparent value. HTML <!DOCTYPE html> <html> <head> <title> Style borderBottomColor Property </title> <style> #GFG_Div { width: 400px; margin-left: 210px; border: thick solid green; } </style> </head> <body align="center"> <div id="GFG_Div"> <h1>GeeksforGeeks</h1> <h2> DOM Style borderBottomColor Property </h2> <p> Click to change the bottom border color of an element </p> </div> <br> <button type="button" onclick="myGeeks()"> Click to change </button> <!-- Script to use Style borderBottomColor Property --> <script> function myGeeks() { document.getElementById("GFG_Div") .style.borderBottomColor = "transparent"; } </script> </body> </html> Output: Before clicking the button: After clicking the button: Supported Browsers: The browser supported by Style borderBottomColor Property are listed below: Google Chrome 1.0Edge 12.0Internet Explorer 4.0Firefox 1.0Opera 3.5Safari 1.0 Create Quiz Comment K kundankumarjha Follow 0 Improve K kundankumarjha Follow 0 Improve Article Tags : JavaScript Explore JavaScript BasicsIntroduction to JavaScript4 min readVariables and Datatypes in JavaScript6 min readJavaScript Operators5 min readControl Statements in JavaScript4 min readArray & StringJavaScript Arrays7 min readJavaScript Array Methods7 min readJavaScript Strings5 min readJavaScript String Methods9 min readFunction & ObjectFunctions in JavaScript5 min readJavaScript Function Expression3 min readFunction Overloading in JavaScript4 min readObjects in JavaScript4 min readJavaScript Object Constructors4 min readOOPObject Oriented Programming in JavaScript3 min readClasses and Objects in JavaScript4 min readWhat Are Access Modifiers In JavaScript ?5 min readJavaScript Constructor Method7 min readAsynchronous JavaScriptAsynchronous JavaScript2 min readJavaScript Callbacks4 min readJavaScript Promise4 min readEvent Loop in JavaScript4 min readAsync and Await in JavaScript2 min readException HandlingJavascript Error and Exceptional Handling6 min readJavaScript Errors Throw and Try to Catch2 min readHow to create custom errors in JavaScript ?2 min readJavaScript TypeError - Invalid Array.prototype.sort argument1 min readDOMHTML DOM (Document Object Model)8 min readHow to select DOM Elements in JavaScript ?3 min readJavaScript Custom Events4 min readJavaScript addEventListener() with Examples9 min readAdvanced TopicsClosure in JavaScript4 min readJavaScript Hoisting6 min readScope of Variables in JavaScript3 min readJavaScript Higher Order Functions7 min readDebugging in JavaScript4 min read Like