Question: align is not a valid attribute of div?
Answer: The align attribute is not valid on div or most other tags in HTML5. ... Browsers generally have good backwards compatibility for earlier versions of HTML and XHTML and their features, especially more popular features like the align tag. Despite the compatibility, you should always aim for valid syntax whenever possible.