Skip to main content

HTML Guide

The “width” attribute on the table (or td) element is obsolete. Use CSS instead.

Both <table> and <td> elements no longer accept a width attribute. Instead, you should use CSS as in this example:

<table style="width:100%;">
  <tr>
    <td style="width:50px;">Name</td>
  </tr>
</table>

Related W3C validator issues