Easy Tutorial
❮ Tag Rp Att Del Cite ❯

HTML <tbody> valign Attribute

HTML <tbody> Tag

Example

Align the content of the <tbody> element vertically to the bottom:


Browser Support

All major browsers support the valign attribute.


Definition and Usage

The valign attribute specifies the vertical alignment of content within the <tbody> element.


Syntax

Attribute Values

Value Description
top Aligns the content at the top.
middle Aligns the content in the middle (default value).
bottom Aligns the content at the bottom.
baseline Aligns to the baseline. The baseline is an imaginary line. In a line of text, most letters rest on the baseline. The baseline value sets all table data in the row to share the same baseline. This often looks the same as the bottom value. However, if the text size varies, baseline works better. See the diagram below.

Diagram showing bottom vs. baseline when text sizes differ:

❮ Tag Rp Att Del Cite ❯