Export to GitHub

doctype-mirror - TdAlignAttribute.wiki


You are here: Home > HTML Reference > Elements > <td> element > align attribute

Usage

The align attribute is deprecated in favor of the text-align CSS property, but browsers still support it.

Values

  • left (default)
  • center
  • right

Elements

You can use the align attribute on the following elements:

  • <address>
  • <applet>
  • <blockquote>
  • <body>
  • <caption>
  • <center>
  • <col>
  • <colgroup>
  • <dd>
  • <dir>
  • <div>
  • <dl>
  • <dt>
  • <embed>
  • <fieldset>
  • <form>
  • <hr>
  • <iframe>
  • <img>
  • <input>
  • <isindex>
  • <legend>
  • <li>
  • <listing>
  • <menu>
  • <object>
  • <ol>
  • <p>
  • <plaintext>
  • <select>
  • <spacer>
  • <table>
  • <tbody>
  • <td>
  • <th>
  • <tfoot>
  • <thead>
  • <tr>
  • <ul>
  • <xmp>

Browser compatibility

Compatibility table legend

| Test | IE8 | IE7 | IE6 | FF3 | FF2 | Saf3 | Op9 | Chrome | |:---------|:--------|:--------|:--------|:--------|:--------|:---------|:--------|:-----------| | td.align reflects <td align="center"> | Y | Y | Y | Y | Y | Y | Y | Y | | td.align reflects <td align="justify"> | N | N | N | Y | Y | Y | Y | Y | | td.align reflects <td align="left"> | Y | Y | Y | Y | Y | Y | Y | Y | | td.align reflects <td align="right"> | Y | Y | Y | Y | Y | Y | Y | Y |

Further reading