Easy Tutorial
❮ Att Th Char Att Button Name ❯

HTML <tr> valign Attribute

HTML <tr> Tag

Example

HTML table with rows aligned vertically differently:


Browser Support

All major browsers support the valign attribute.


Definition and Usage

The valign attribute specifies the vertical alignment of content in a table row.


Syntax

Attribute Values

Value Description
top Aligns the content at the top.
middle Centers the content vertically (default).
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 has the same effect as bottom, but baseline works better when text sizes vary. See the diagram below.

Diagram of bottom vs. baseline when text sizes differ:

❮ Att Th Char Att Button Name ❯