VOOZH about

URL: https://www.geeksforgeeks.org/html/html-valign-attribute/

⇱ HTML valign Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML valign Attribute

Last Updated : 22 May, 2026

The valign attribute is used to specify the vertical alignment of content within table cells or rows. It was commonly used in older HTML versions but is now deprecated in HTML5.

  • Specifies vertical alignment (e.g., top, middle, bottom).
  • Used with <td>, <th>, and <tr> elements.
  • Helps control vertical positioning of content within cells.

Note: The valign attribute is not supported by HTML5.

Syntax

<element valign="top | middle | bottom | baseline">

Attribute value

  • top: Aligns content to the top.
  • middle: Aligns content to the middle.
  • bottom: Aligns content to the bottom.
  • baseline: Aligns content to the baseline (the line where most characters sit).

Example: This example illustrates the use of valign attribute in the HTML document.

Comment