Easy Tutorial
❮ Html Colorpicker Html Reference ❯

HTML <thead> valign Attribute

HTML <thead> Tag

Example

Center-align the content vertically within the <thead> element:


Browser Support

All major browsers support the valign attribute.


Definition and Usage

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


Syntax

Attribute Values

Value Description
top Aligns the content to the top.
middle Center-aligns the content (default value).
bottom Aligns the content to 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 the bottom value. However, if the text size varies, baseline works better. See the illustration below.

Illustration of bottom vs. baseline when text size varies:

❮ Html Colorpicker Html Reference ❯