ProAnswers.org

How to use <tbody> tag?

The element can be sectioned into three horizontal parts: , , and .

     contains the rows at the head of the .

     contains the rows in the body of the .

     contains the rows at the foot of the .

 

Using , , and  elements with the  element tells browsers the breakdown of the sections and allows you to apply different styles to the heading, body, and footer.

Example

 





     

          

               This cell is in the thead rows group.

               This cell is in the thead rows group.

               This cell is in the thead rows group.

          

          

               

                    This cell is in the tbody rows group.

                    This cell is in the tbody rows group.

                    This cell is in the tbody rows group.

               

               

                    This cell is in the tbody rows group.

                    This cell is in the tbody rows group.

                    This cell is in the tbody rows group.

               

          

          

               This cell is in the tfoot rows group.

               This cell is in the tfoot rows group.

               This cell is in the tfoot rows group.