Recently, I'm editing a website which is coded by previous worker. And I saw this
<div align="right"><table>...</table></div>
And this table is well aligned to the right. But I didn't see this align
attribute on w3school. (It seems to be copied from Excel or Word.)
Is this attribute align
legal to use in HTML5?
No in HTML5 align
attribute is deprecated. Though, you can use style sheet text-align
property.
In case of deprecated valign
attribute, you can use vertical-align
property.
Also, if you going to make flex box, use align-content
property to align contents.