The char attribute belonged on table cells such as <td> and <th>. It was meant to name the character that text should align on when align="char" — commonly a period (.) for decimals or currency.
Do not use it. MDN states that chardoes nothing. Prefer CSS text-align. Related charoff (offset from that character) also does nothing.
Deprecated · No effect.
Presentational HTML that was never reliably implemented. Documented for reading legacy markup only — not for new pages.
Needed align="char".
Even historically, char was ignored unless align was set to char. Both attributes are deprecated.
Syntax
HTML Syntax
syntax.html
<td|th align="char" char="character">
Historical form only. Modern browsers do not perform character alignment from these attributes.
No char attribute — CSS and formatting do the job browsers never did for char.
Edge Cases & Pitfalls
The main pitfall is expecting char to change the layout.
deprecated
Does nothing
MDN is explicit: char has no effect. Do not debug “broken alignment” by tweaking it.
pair
Ignored without align="char"
Historically required. Today both attributes are obsolete — use CSS instead of restoring the pair.
charoff
charoff is also inert
The offset companion was never useful in practice. Skip both.
i18n
Decimal characters vary
Some locales use , instead of .. Formatting and CSS remain clearer than a dead HTML attribute.
css
True char alignment is rare
Even CSS never made “align on this character” a everyday feature. Prefer right-align and consistent number formatting.
Compatibility
Browser Support
char is a deprecated HTML attribute. Engines may parse it, but they do not implement character alignment.
✓ Deprecated · No effect
char
Documented as doing nothing. Not recommended for new work — use CSS text-align and careful number formatting.
0%Useful browser behavior
Google ChromeParses · no alignment
No effect
Mozilla FirefoxParses · no alignment
No effect
Apple SafariParses · no alignment
No effect
Microsoft EdgeParses · no alignment
No effect
OperaParses · no alignment
No effect
Internet ExplorerLegacy / incomplete
No effect
charDeprecated — no layout effect
Bottom line: Treat every char= in old HTML as a no-op. Align columns with CSS.
Remember
Key Takeaways
Was: name a character for align="char" (often .).
Now: deprecated and inert — browsers do not align on it.
Replace with: CSS text-align plus consistent number formatting.
charoff: companion attribute — also does nothing.
One line: learn char to recognize old tables — ship CSS alignment instead.
Frequently Asked Questions
It was meant to name the character that table cell text should align on when align="char" — often a period (.) for decimal numbers.
No. MDN states that char does nothing. It is deprecated and was never reliably implemented for real layouts.
Historically td, th, and related table grouping elements that supported align. It was ignored unless align was set to char.
A companion deprecated attribute that was meant to offset content from the alignment character. MDN also says charoff does nothing.
Use CSS text-align (left, right, center, or justify). For money or decimals, format numbers consistently, use tabular figures, or right-align the column.
No. Both align and char are deprecated presentational attributes. Prefer CSS.