HTML valign attribute
Example
Vertically align the content in the element to the bottom:
| Month | Savings |
|---|---|
| January | $100 |
| February | $80 |
Try it »
Browser support





All major browsers support the valign attribute.
Definition and Usage
HTML5 does not support the valign attribute. Please use CSS instead.
The valign attribute specifies the vertical alignment of the content in the element.
Syntax
Attribute values
| Value | Description |
|---|---|
| top | Align the content to the top. |
| middle | Center-align the content (default). |
| bottom | Align the content to the bottom. |
| baseline | Align to the baseline. The baseline is an imaginary line. In a line of text, most letters sit on the baseline. The baseline value sets all table data in the row to share the same baseline. The effect of this value is often the same as the bottom value. However, if the text sizes vary, the baseline value works better. See the illustration below. |
Illustration of bottom vs. baseline when text sizes differ:
valign="bottom"
valign="baseline"
HTML tag