HTML <tbody> tag
The <tbody> tag groups the body content in the table.
You should code the <tbody> tag inside the <table> tag.
Syntax:
<tbody>Table elements….<tbody>
Example
<table> <thead> <tr> <th>BIG DATA </th> <th>DIGITAL MARKETING</th> <th>MAINFRAME </th> </tr> </thead> <tfoot> <tr> <td>40,000</td> <td>25,000</td> <td>60,000</td> </tr> </tfoot> <tbody> <tr> <td>Spark</td> <td>SEO</td> <td>COBOL</td> </tr> <tr> <td>Scala</td> <td>Social Media</td> <td>DB2</td> </tr> </tbody> </table>
Difference between HTML4.01, XHTML and HTML5
HTML4 | XHTML | HTML5 |
---|---|---|
NA | NA | All the attributes of <tbody> tag are not supported in HTML5. |
Attributes used with <tbody> tag
Attribute | Description |
---|---|
align | Describes the alignment of elements based on nearby elements. (HTML5 does not support this attribute when it is used with the <tbody> tag). |
char | Sets as character valuue for the content alignment. (HTML5 does not support this attribute when it is used with the <tbody> tag). |
valign | It aligns the content inside the <tbody> tag as vertically alignment. (HTML5 does not support this attribute when it is used with the <tbody> tag). |
Global Attributes
The <tbody> tag supports Global attributes.
Event Attributes
The <tbody> tag supports Event attributes.
Supporting Browsers
Default CSS Values
display: table-row-group;
vertical-align: middle;
border-color: inherit;
Related Tags
<tr>, <td>, <th>, <caption>, <thead>, <tfoot>, <colgroup> & <col> tags.