Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy should I not use deprecated align='right' for numbers on an TD (table cell)?
    primarykey
    data
    text
    <p>I am referring to the usage a table for showing tabular data, eg: a spreadsheet, focusing on <strong>numbers</strong>, that I feel <a href="https://ux.stackexchange.com/a/24073">and see in UX</a> that should be right aligned, properly formatted (with same number of decimals) to facilitate sums. For numbers this looks like a borderline case between semantics and formatting, for other kind of data types like dates choosing an alignment is more arbitrary. </p> <p>I of course agree in using css when possible but css is not always supported or enabled and I see reasons to use align='right' since it gives decent default for when there is no support for css. This happens for example in <a href="http://postimg.org/image/512asz7tt/" rel="nofollow noreferrer">my version of Lynx</a> or when a browser user disables css to print.</p> <p>Speculation: perhaps a more semantic attribute like &lt;td number='true'> could do the work also if seen how problematic are </p> <pre><code> &lt;input type='number'&gt; </code></pre> <p>in HTML5 <a href="https://stackoverflow.com/a/13416324/1536382">in respect to localization</a> I would just expect from it to align on right.</p> <p>I remember also at some point in time was <a href="https://stackoverflow.com/questions/3491593/how-to-override-td-align-center">difficult to override</a> align attribute with css (and I remember css designers asking me to remove it from HTML) but this <a href="http://jsfiddle.net/yTXA4/" rel="nofollow noreferrer">seems not true (anymore?) now</a></p> <p>Am I missing something ? I am personally generating align='right' for numbers in my html.</p> <p>My main question is: is there any reason except the fact that is deprecated to not use ALIGN='right' for properly formatted numbers on an HTML TD ?</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload