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:


Table of Content

  1. Syntax
  2. Resources and References

Syntax:

Output

Computer software list:

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

Element Specific Attributes

Sr. No. Attribute Name Description
1 align The 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
2 char The 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.
3 charoff Use 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%)
4 valign This 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 Reply

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