asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Elements > TBODY Element

<tbody> Element


Represents the body of a <table> element.HTML 4, 4.01, 5

HTML Syntax

Remarks

The <tbody> element encapsulates a set of table rows that comprise the body of a parent <table> element.

Its content represents the table’s main data.

The <tbody> is exposed for all tables, even if the table did not explicitly define a tbody element.

NOTE: This element can only be used within a <table> element.

A <tbody> element’s start tag can be omitted if the first thing inside the <tbody> element is a <tr> element, and if the element is not immediately preceded by a <tbody>, <thead>, or <tfoot> element whose end tag has been omitted.

A <tbody> element’s end tag can be omitted if the <tbody> element is immediately followed by a <tbody> or <tfoot> element, or if there is no more content in the parent element.

Attributes

The <tbody> element has no attribute of its own, but supports global attributes common to all HTML elements.

Example

This example shows the relationship between the thead, tbody and tfoot elements, and how using CSS can illustrate their roles in the table model.

Sample Code

InvoiceProduct NameQuantityUnit PriceDiscountNet Amount
10643Rössle Sauerkraut15$45.600.25$513.00
10643Chartreuse verte21$18.000.25$283.50
10643Spegesild2$12.000.25$18.00
Totals $814.50

External References

See Also

TABLE   TD   TFOOT   THEAD   TH   TR   Using Tables


Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

If you have any question, comment or suggestion,
please send us a note