HTML tbody tag


Definition: HTML tbody tag is used to specify the main content part of the table.

The tbody tag used with the HTML thead tag and HTML tfoot tag to create data in tabular form. The browser uses this table content part to enable scrolling independently of the header and footer.

You should also learn these terms:

  • HTML caption tag use to show the table titles.
  • HTML colgroup tag to show a group of columns at the same time in tables.


Syntax:

Output

Computer software list:

Sr. No.name
1Video player software
2Google Chrome browser
3VLC media player
4DVD writer software

Element Specific Attributes

Sr. No.Attribute NameDescription
1alignThe attribute is used to specify the alignment of the main content of the table.

  • The align value for this can be:
    • left
    • right
    • center
    • justify
    • char
2charThe attribute is used for the main content of a table only when the value of the align attribute is char (align=”char”).

  • A character value can be used for this.
3charoffUse this attribute only after you specify align=”char”. This specifies an alignment offset against the first character with this attribute.

  • the value can be:
    • pixel (eg. 20px)
    • A percentage (eg. 8%)
4valignThis defines the vertical alignment of the main content of the table.

  • The possible values are:
    • top
    • bottom
    • middle
    • baseline

Resources and References

1. W3C Specification.
2. HTML living standard
3. W3C project using Github


Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.