Align and Width deprecated html tags

You should not be using the following tags anymore.

An other two HTML tags I came across. Upgrade yourself 😉

align

<div align="center"> </div>Code language: HTML, XML (xml)

You could use instead:

<div style="margin:0 auto;"></div>Code language: HTML, XML (xml)

width

<table width="100%">
  <tr>
    <td></td>
  </tr>
</table>Code language: HTML, XML (xml)

Use the same but inside the style:

<table style="width:100%">
  <tr>
    <td></td>
  </tr>
</table>Code language: HTML, XML (xml)

Leave a Reply

Your email address will not be published. Required fields are marked *