In order to write valid HTML, you need to avoid the elements that have been deprecated. Many HTML tags, including the <center>
tag, are now obsolete. It turns out that HTML, like all technology, is constantly evolving, changing, and improving. While the HTML tag is still part of the HTML specification, it will not be included in the future. If it’s not included, browsers won’t support it. This will result in Web pages that may not work in future websites or applications.
Why is the <center>
tag deprecated?
Many HTML elements are deprecated in favor of CSS style sheets, the design aspect of the HTML architecture. The <center>
tag is one of those elements. While it once centered whatever it wrapped around, CSS styles now manage the centering process.
This article is about how the <center>
tag came to be gone from HTML, no longer supported by the time HTML 4 (XHTML 1) was adopted, and why. Continue reading Why Not Center?