HTML 4 center Tag

Obsolete in HTML5
This tag is obsolete in HTML5, so it's best to avoid using it.

The HTML center tag is used to center-align HTML elements.

The HTML center tag is deprecated in HTML 4.01 and obsolete in HTML 5. You should use Cascading Style Sheets (CSS) to center elements. In particular, see the CSS text-align property.


Try it Yourself!


HTML5 Tags

The information on this page is based on HTML version 4.01. Most modern browsers now support HTML5.

See this list of HTML tags for the latest list of HTML elements.