title: What is the HTML5 equivalent to the align attribute in table cells?
body: <p>I'm refactoring an old site, and that maze is full of tables.
  We're moving to HTML5 and I need to fix a table full of </p>
  
  <pre><code>&lt;td align="center"&gt;
  </code></pre>
  
  <p>code.
  I found a partial solution by creating a class</p>
  
  <pre><code>.centered {
      text-align: center;
  }
  </code></pre>
  
  <p>and assigning it to every TD containing text.<br>
  But this is not working on images and some other elements.</p>
  
  <pre><code>margin: auto;
  </code></pre>
  
  <p>won't work either.<br>
  What's the fastest way to center ALL content inside a TD?</p>