HTML <tr> char attribute
HTML <tr> tag
Example
In the example below, the content of the second and the third row should align to the "." character:
<table border="1">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr align="char" char=".">
<td>January</td>
<td>$100.00</td>
</tr>
<tr align="char" char=".">
<td>February</td>
<td>$10.00</td>
</tr>
</table> |
Try it yourself!
|
Definition and Usage
The char attribute specifies the alignment of the content in a table row to a character.
The char attribute can only be used if the align attribute is set to "char".
The default value of char is the decimal-point character of the page language.
Browser Support

Note: The char attribute is not supported by any of the major
browsers.
Syntax
Attribute Values
Value |
Description |
character |
Specifies the character to align the content to |
HTML <tr> tag
 |
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate is for developers who want to document their knowledge of JavaScript and the HTML DOM.
The XML Certificate is for developers who want to document their knowledge of XML, XML DOM and XSLT.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
The PHP Certificate is for developers who want to document their knowledge of PHP and SQL (MySQL).
|
|