HTML | DOM Style columnSpan Property Last Updated : 28 Jun, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report The DOM style columnspan property is used to specify how many columns an element should span across. Syntax: It return the columnSpan property:object.style.columnSpanIt set the columnSpan property:object.style.columnSpan = "1|all|initial|inherit" Property Values: 1: Default value of the element. Used to span element one column.all: It is used to span element to all column.initial: It is used to set its Default value.inherit: It is used to set property from its parent. Return value: This property returns a String, that represent the column-span property of an element. Example-1: Set columnSpan property to "all". html <!DOCTYPE html> <html> <head> <title> HTML | DOM Style columnSpan Property </title> <style> #main { column-count: 3; /* Standard syntax */ } </style> </head> <body> <center> <h1 style="color:green;">GeeksForGeeks</h1> <h3>DOM Style columnSpan Property </h3> <button onclick="geeks()">Click</button> <div id="main"> <h2 id="h2tag"> It is a good platform to learn programming. </h2> Prepare for the Recruitment drive of product based companies like Microsoft, Amazon, Adobe etc with a free online placement preparation course. The course focuses on various MCQ's & Coding question likely to be asked in the interviews & make your upcoming placement season efficient and successful. </div> <script> function geeks() { // Code for old Chrome, Safari, Opera document.getElementById("h2tag").style.WebkitColumnSpan = "all"; // For other standard browsers. document.getElementById("h2tag").style.columnSpan = "all"; } </script> </center> </body> </html> Output: Before click on the Button: After click on the Button: Example-2: Set columnSpan property to "all". html <!DOCTYPE html> <html> <head> <title> HTML | DOM Style columnSpan Property </title> <style> #main { column-count: 3; /* Standard syntax */ border: 2px solid green; } #h2tag { background-color: orange; color: lime; } </style> </head> <body> <center> <h1 style="color:green;">GeeksForGeeks</h1> <h3>DOM Style columnSpan Property </h3> <button onclick="geeks()">Click</button> <br> <div id="main"> <h2 id="h2tag"> GeeksforGeeks is a good platform to learn programming. </h2> It is a good platform to learn programming. It is an educational website. Prepare for the Recruitment drive of product based companies like Microsoft, Amazon, Adobe etc with a free online placement preparation course. The course focuses on various MCQ's & Coding question likely to be asked in the interviews & make your upcoming placement season efficient and successful. Also, any geeks can help other geeks by writing articles on the GeeksforGeeks, publishing articles follow few steps that are Articles that need little modification/improvement from reviewers are published first. To quickly get your articles reviewed, please refer existing articles, their formatting style, coding style, and try to make you are close to them. In case you are a beginner, you may refer Guidelines to write an Article </div> <script> function geeks() { // Code for old Chrome, Safari, Opera document.getElementById("h2tag").style.WebkitColumnSpan = "all"; // For other standard browsers. document.getElementById("h2tag").style.columnSpan = "all"; } </script> </center> </body> </html> Output: Before click on the Button: After click on the Button: Supported Browser: The browser supported by HTML | DOM Style columnSpan Property are listed below: Google Chrome 50.0 and aboveEdge 12 and aboveInternet Explorer 10.0 and aboveOpera 11.1 and aboveFirefox 71.0 and aboveSafari 9.0 Comment More infoAdvertise with us Next Article HTML DOM | KeyboardEvent altKey Property S Sabya_Samadder Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML DOM | KeyboardEvent altKey Property The KeyboardEvent altKey property in HTML DOM is a read-only property and used to return the boolean value which indicates the alt key is pressed or not. It returns True if alt key is pressed otherwise return false. Syntax: event.altKey Below program illustrates the KeyboardEvent altkey property in 1 min read HTML | DOM Form target Property The DOM Form Target property is used to set or return the value of the target attribute of the form.The Target attribute is used to specify whether the submitted result will open in the current window, a new tab or on a new frame. Syntax: It is used to return the target property. formObject.target I 3 min read HTML | DOM KeyboardEvent shiftKey Property The KeyboardEvent shiftKey property in HTML DOM is a read-only property and used to return a Boolean value which indicates the SHIFT key is pressed or not. The KeyboardEvent shiftKey property returns true if the SHIFT key is pressed, otherwise returns false. Syntax: event.shiftKey Below program illu 1 min read HTML | DOM Form length Property The DOM Form length Property is used to return the number of input field contained in the form. Syntax: formObject.length Return Value: It returns a numeric value which represent the number of input field or elements in the Form. Example-1: Return the number of input field. html <!DOCTYPE html 2 min read HTML | DOM Form acceptCharset Property The DOM Form acceptCharset Property is used to set or return the value of the accept-charset attribute in the form Element. The accept-charset attribute is used to define the character encoding and is used for form submission. The default value of the accept-charset attribute is âUNKNOWNâ string whi 2 min read HTML | DOM KeyboardEvent metaKey Property The KeyboardEvent metaKey property in HTML DOM is a read-only property and is used to return a Boolean value which is used to check whether the META key is pressed or not. The KeyboardEvent metaKey property returns true if the META key is pressed, otherwise returns false. Syntax: event.metaKey Below 1 min read HTML DOM Select Object The Select object in HTML DOM is used to represent an HTML <select> element. It provides properties and methods to manipulate the <select> element and its associated <option> elements.Syntax:To create <select> element. document.createElement("SELECT")To access <select> 3 min read HTML | DOM TouchEvent touches Property The TouchEvent touches property in HTML DOM is used to return the array of touch object. It returns one for each finger that is currently touching to the surface. The touches property is a read only property and it returns an array of touch objects. Syntax: event.touches Return Value: It return the 1 min read HTML | DOM form method Property The DOM Form method Property is used to set or returnthe value of the method attribute in the form. The method attribute is used to specify the HTTP method used to send data while submitting the form. There are two kinds of HTTP Methods, which are GET and POST. Syntax: It is used to return the metho 3 min read HTML | DOM Form name Property The DOM Form name Property is used to set or return the value of the name attribute in a form. The name attribute is required for each input field. If the name attribute is not specified in an input field then the data of that field would not be sent at all. Syntax: It is used to return the name pro 2 min read Like