HTML CSS Bootstrap Javascript Icons Python
HTML References
HTML - Tag Reference HTML - Tag by Category HTML - Attributes HTML - Global Attributes HTML - Events HTML - Language Codes HTML - Country Codes HTML - URL Encoding HTTP Methods HTTP Status Codes <input> types
All HTML Tags
<!-- --> <!DOCTYPE> <a> <abbr> <acronym> <address> <applet> <area> <article> <aside> <audio> <b> <base> <basefont> <bdi> <bdo> <big> <blockquote> <body> <br> <button> <canvas> <caption> <center> <cite> <code> <col> <colgroup> <data> <datalist> <dd> <del> <details> <dfn> <dialog> <dir> <div> <dl> <dt> <em> <embed> <fieldset> <figcaption> <figure> <font> <footer> <form> <frame> <frameset> <h1> - <h6> <head> <header> <hr> <html> <i> <iframe> <img> <input> <ins> <kbd> <label> <legend> <li> <link> <main> <map> <mark> <meta> <meter> <nav> <noframes> <noscript> <object> <ol> <optgroup> <option> <output> <p> <param> <picture> <pre> <progress> <q> <rp> <rt> <ruby> <s> <samp> <script> <section> <select> <small> <source> <span> <strike> <strong> <style> <sub> <summary> <sup> <svg> <table> <tbody> <td> <template> <textarea> <tfoot> <th> <thead> <time> <title> <tr> <track> <tt> <u> <ul> <var> <video> <wbr>

HTML <tbody> tag

The HTML <tbody> element encapsulates a set of table row (<tr>), indicating that they comprise the body of the table.

Run code

The <tbody> element must be used in the following context: As a child of a <table> element, after any <caption>, <colgroup>, and <thead> elements.

Note: The <thead>, <tbody>, and <tfoot> elements will not affect the layout of the table by default. However, you can use CSS to style these elements.

Browser compatibility

The <tbody> element is fully supported by all browsers:

<tbody> yes yes yes yes yes


The following table shows the attributes that are specific to the <tbody> tag:

Attribute Value Description
align right
Not supported in HTML5.
Specifies how horizontal alignment of each cell content will be handled
char character Not supported in HTML5.
Set the character to align the cells in a column on
charoff number Not supported in HTML5.
Indicate the number of characters to offset the column data from the alignment characters
valign top
Not supported in HTML5.
Specifies the vertical alignment of the text within each row of cells of the table header

Global Attributes

The <tbody> tag supports the global attributes described in HTML Global Attributes Reference

Event Attributes

The <tbody> tag supports the event attributes described in HTML Events Reference

More Examples

This example use CSS to style <thead>, <tbody>, and <tfoot> elements:

Run code

Last updated: Monday 01 Oct, 2018