Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

HTML tbody element

3 tags 1 category

The <tbody> HTML element encapsulates a set of table rows (<tr> elements), indicating that they comprise the body of a table’s (main) data.

The <tbody> is placed after any <caption>, <colgroup>, and <thead> elements. If <tr> elements are specified as direct children of the <table> (see “tag omission” in the technical summary for a description of when this is valid), then the markup generated by the browser will include a <tbody> element that encapsulates them. As a result, CSS selectors such as table > tr will not select these elements. It’s permitted to use more than one <tbody> per table as long as they are all consecutive. This allows you to divide the rows (<tr> elements) in large tables into sections, each of which may be separately formatted if so desired. If not marked up to be consecutive elements, browsers will correct this author error, ensuring any <thead> and <tfoot> elements are rendered as the first and last elements of the table, respectively.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…