Why shouldn't I use the deprecated align = 'right' for numbers in TD (table cell)?

I mean using a table to display tabular data, for example: a spreadsheet that focuses on the numbers I feel and see in the UX , which needs to be correctly aligned, correctly formatted (with the same number of decimal places) to facilitate the sums. For numbers, this looks like a borderline case between semantics and formatting, for other data types, such as dates choosing alignment, are more arbitrary.

Of course, I agree with the use of css, but css is not always supported or enabled, and I see reasons to use align = 'right', since it gives a decent default when there is no support for css. This happens, for example, in my version of Lynx or when a browser user disables css for printing. A.

Speculation: perhaps a more semantic attribute, such as <td number = 'true'>, might also work if you look at how problematic

 <input type='number'> 

in HTML5 regarding localization I would just expect alignment from it to the right.

I also remember that at some point in time it was difficult to override the alignment attribute with css (and I remember that CSS designers asked me to remove it from HTML), but it seems invalid (anymore?) Now

Am I missing something? I personally generate align = 'right' for the numbers in my html.

My main question is: is there any reason besides being deprecated so as not to use ALIGN = 'right' for correctly formatted numbers in HTML TD?

Thanks.

+4
source share
2 answers

, , , , align = right. , :

  • . , .
  • , .
  • . , , , .
+2

, . , , /, . . CSS.

align. - ( " ", " " )

Unicodes (U + 2007). , :

  • : &#x2007;
  • decimal: &#8199;

<table>
  <tr><td>100000.00</td></tr>
  <tr><td>&#8199;&#8199;&#8199;100.00</td></tr>
</table>
+2

All Articles