HTML | DOM Style tabSize Property Last Updated : 05 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The Style tabSize property in HTML DOM is used to set or return the length of the space used in place of the tab character. Syntax: To get the tabSize propertyobject.style.tabSizeTo set the tabSize propertyobject.style.tabSize = "number|length|initial|inherit" Property Values number: It is used to specify the number of space characters to be used for each tab character. The default value is 8.length: This is used to specify the length of the tab character. This value is not currently supported by most browsers.initial: This is used to set the property to its default value.inherit: This is used to inherit the value from the element's parent. Example 1: Using "number" property. HTML <!DOCTYPE html> <html> <head> <title> DOM Style tabSize Property </title> </head> <body> <h1 style="color: green"> GeeksforGeeks </h1> <b> DOM Style tabSize Property </b> <p> The tabSize property specifies the amount of space to be used for the tab character. </p> <pre id="ts"> Geeks For Geeks </pre> <button onclick="GFG()"> Change </button> <script> function GFG() { ele = document.getElementById("ts"); ele.style.tabSize = "16" } </script> </body> </html> Output: Before clicking the button: After clicking the button: Example 2: Using "initial" property. HTML <!DOCTYPE html> <html> <head> <title> DOM Style tabSize Property </title> <style> #ts { tab-size: 16; } </style> </head> <body> <h1 style="color: green"> GeeksforGeeks </h1> <b>DOM Style tabSize Property</b> <p> The tabSize property specifies the amount of space to be used for the tab character. </p> <pre id="ts"> Geeks For Geeks </pre> <button onclick="GFG()">Change</button> <script> function GFG() { ele = document.getElementById("ts"); ele.style.tabSize = "initial" } </script> </body> </html> Output: Before clicking the button: After clicking the button: Supported Browsers: The browser supported by DOM Style tabSize Property are listed below: Chrome 21Edge 79Firefox 91Opera 15Safari 7 Comment More infoAdvertise with us Next Article HTML | DOM Style width Property S sayantanm19 Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML | DOM Style tableLayout Property The DOM Style tableLayout property is used to set or return how a table and its cells, rows, and columns should be laid out. Syntax: It returns the tableLayout Propertyobject.style.tableLayoutIt used to set the tableLayout Propertyobject.style.tableLayout = "auto | fixed | initial | inherit" Return 3 min read HTML | DOM Style width Property The Style width property in HTML DOM is used to set or return the width of an element which can be block-level elements or elements with fixed position. Syntax: It is used to return the width property:object.style.widthIt is used to set the width property:object.style.width = "auto|length|%|initial| 2 min read HTML | DOM tabIndex Property The tabIndex property is used to return the value of the tabindex attribute of an element. The tabindex attribute specifies the tab order of an element (It is used when the tab button is used for navigating.)Syntax: Returns the tabIndex property: HTMLElementObject.tabIndexSet the tabIndex property: 1 min read HTML | DOM Table width Property The Table width property in HTML DOM is used to set or return the value of the width attribute of a table. Note: This property is not supported by HTML5. Syntax: It returns the width property of a table.tableObject.width;It is used to set the width property of a table.tableObject.width ="pixels"; At 2 min read HTML | DOM Style resize Property The Style resize property in HTML DOM is used to specify whether an element is resizable in height and width by the user. Syntax: It returns the resize property:object.style.resizeIt is used to set the resize property:object.style.resize = "both|horizontal|vertical|none|initial| inherit" Property Va 5 min read HTML | DOM Style padding Property The Style padding property is used for setting or returning the padding of an element. The Style padding property can be used in 4 different ways : div {padding: 30px} -In this case, all the four sides have a padding of 30px.div {padding: 100px 50px} -In this case, the top and bottom padding will be 4 min read Like