HTML | DOM TableRow Object Last Updated : 29 Jun, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report The TableRow Object in HTML DOM is used to represent the HTML <tr> element. The <tr> element can be accessed by using getElementById() method. Syntax: document.getElementById("id"); The tr element can be created by using the document.createElement() method. Syntax: document.createElement("tr"); Property Value: align: It is used to set or return the horizontal alignment of the content within a table row. It is not supported in HTML 5.vAlign: It is used to set or return the vertical alignment of the content within a table row. It is not supported in HTML 5.bgColor: It is used to set or return the background color of a table row. It is not supported in HTML 5.ch: It is used to set or return an alignment character for cells in a table row. It is not supported in HTML 5.chOff: It is used to set or return the horizontal offset of the ch property. It is not supported in HTML 5.height: It is used to set or return the height of a table row. It is not supported in HTML 5.rowIndex: It is used to return the position of row in the rows collection of a table.sectionRowIndex: It is used to return the position of a row in the rows collection of a tbody, thead, or tfoot. TableRow Object Methods: deleteCell(): This method is used to delete a cell from the current table row.insertCell(): This method is used to insert a cell into the current table row. Example 1: This example describes the getElementById() method to access the <tr> element. html <!DOCTYPE html> <html> <head> <style> table, th, td { border: 1px solid green; } </style> </head> <body> <h1> GeeksForGeeks </h1> <h2>HTML DOM tableRow Object</h2> <table> <tr id = "GFG"> <td>Geeks</td> <td>Geeks</td> <td>For</td> <td>Geeks</td> </tr> </table> <p> Click on the button to delete cell of table </p> <button onclick = "myGeeks()"> Click Here! </button> <script> function myGeeks() { var row = document.getElementById("GFG"); row.deleteCell(0); } </script> </body> </html> Output: Before click on the button: After click on the button: Example 2: This example describes the document.createElement() method to create <tr> element. html <!DOCTYPE html> <html> <head> <title> HTML DOM TableRow Object </title> <style> table, td { border: 1px solid green; } </style> </head> <body> <h1>GeeksForGeeks</h1> <h2>DOM tableRow Object</h2> <table id = "GeeksTable"></table> <p> Click on the button to create table element. </p> <button onclick = "myGeeks()"> Click Here! </button> <!-- script to create table --> <script> function myGeeks() { /* Create tr element */ var x = document.createElement("TR"); /* Set the id attribute */ x.setAttribute("id", "GeeksTr"); /* Append element to table */ document.getElementById("GeeksTable").appendChild(x); /* Create td element */ var y = document.createElement("TD"); var t = document.createTextNode("Hello"); y.appendChild(t); document.getElementById("GeeksTr").appendChild(y); /* Create td element */ var z = document.createElement("TD"); /* Assign node value */ var p = document.createTextNode("Geeks!"); /* Append node value to child element */ z.appendChild(p); document.getElementById("GeeksTr").appendChild(z); } </script> </body> </html> Output: Before click on the button: After click on the button: Supported Browsers: Google ChromeInternet ExplorerMozilla FirefoxOperaSafari Comment More infoAdvertise with us Next Article HTML | DOM Input Number Object D divyatagoel0709 Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML | DOM Input Number Object The Input Number Object in HTML DOM is used to represent an HTML input element with type= "number". The input element with type= "number" can be accessed by using getElementById() method. Syntax: It is used to access input number object.document.getElementById("id");It is used to create input elemen 3 min read HTML | DOM Style overflowY Property The Style overflowY property in HTML DOM is used to specify the behavior of the content when it overflows an element's top and bottom edges. The content may be hidden, shown or a scrollbar according to the value. Syntax: It returns the overflowY property.object.style.overflowYIt is used to set the o 6 min read HTML | DOM Object Object The Object object represents only HTML <object> element. We can access any <object> element by using the getElementById(); and also can create object element by using createElement(); method.Syntax: It is used to access Object element document.getElementById("id"); It is used to create o 2 min read HTML DOM Window localStorage Properties HTML DOM Window localStorage Properties allow you to store value pairs in web browsers using objects. It is a read-only property. This object is not expired even if the browser is closed. So, the data is never lost. Return Values: It returns  a Storage object. Syntax: SAVING data to localStorage usi 2 min read HTML DOM Style transform Property The HTML DOM style transform property is used to transform the object. The transform property allows to rotate, scale, move, skew, etc of an element. It can use 2D or 3D transformation. SyntaxIt returns the transform property.object.style.transformIt sets the transform property.object.style.transfor 3 min read HTML DOM Textarea cols Property The DOM Textarea cols Property is used to set or return the value of the cols attribute of a textarea field. The cols attribute how many average-width characters should fit on a single line. Syntax: It is used to return the cols property.textareaObject.colsIt is used to Set the cols property:textare 2 min read HTML | DOM Style transformStyle Property The transformStyle property is used to set or return, the different ways nested elements use for their rendering in 3D space.Syntax: It return transformStyle: object.style.transformStyleIt set transformStyle: object.style.transformStyle = "flat|preserve-3d|initial|inherit" Properties: flat: It is th 4 min read HTML | DOM Input Reset Object The Input Reset Object in HTML DOM is used to represent the HTML <input> element with type="reset". This tag is used to access or create the <input> element. This element can be accessed by using getElementById() method. Syntax: document.getElementById("Input_ID"); This Input_ID is assig 2 min read HTML | DOM Style outline Property The Style outline property in HTML DOM is used to set or return all outline properties in one declaration. This property draws a line around an element. It sets or returns the one or more border property in short form. The outline can be set the following properties: outline-widthoutline-styleoutlin 2 min read HTML | DOM Textarea Object The Textarea Object in HTML DOM is used to represent the HTML <textarea> Element. The textarea element can be accessed by using getElementById() method.Syntax: document.getElementById("ID"); Where ID is assigned to the <textarea> element.Property Values: autofocus: It is used to set or r 3 min read Like