VOOZH about

URL: https://www.geeksforgeeks.org/html/html-td-char-attribute/

⇱ HTML <td> char Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML <td> char Attribute

Last Updated : 21 May, 2026

The char attribute of the <td> tag is used to align the content of a table cell based on a specific character. It was mainly used in older HTML versions and is now deprecated in HTML5.

  • Aligns cell content relative to a specified character (e.g., ., ,, :)
  • Used along with the align="char" attribute.
  • Commonly used for aligning numeric or tabular data.

Note: The char attribute is deprecated in HTML5; use CSS for alignment instead

Syntax:

<td char="character">

Attribute Values:

  • character: It is used to specify the character to align the content.
Comment
Article Tags: