YouTip LogoYouTip

Att Td Char

.container { margin-top: 20px; } pre { background-color: #f4f4f4; padding: 15px; border-radius: 5px; overflow-x: auto; } code { font-family: 'Courier New', monospace; } .note { background-color: #f8f9fa; border-left: 4px solid #007bff; padding: 15px; margin-bottom: 20px; } .example { background-color: #e9ecef; padding: 15px; border-radius: 5px; margin-bottom: 20px; }

HTML td char Attribute

-- Learning not just technology, but also dreams!

HTML char Attribute

Example

Align the content of the "Savings" cell with the "." character:

<table border="1">
<tr>
  <th>Month</th>
  <th>Savings</th>
</tr>
<tr>
  <td>January</td>
  <td align="char" char=".">$100.00</td>
</tr>
<tr>
  <td>February</td>
  <td align="char" char=".">$10.00</td>
</tr>
</table>

Try it Yourself Β»

Browser Support:
Almost all mainstream browsers do not support the char attribute.
Definition and Usage:
The char attribute is not supported in HTML5 for the <td> element.

The char attribute specifies the alignment of content within a cell relative to a specific character.

The char attribute can only be used when the align attribute is set to "char".

The default value of the char attribute is the decimal point character of the current page language.

Syntax

<td char="character">

Attribute Values

Value Description
character Specifies the character to align the content with.
Related Tags: