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.

Example

Try it Yourself!

Demo

HTML5 Tags

The information on this page is based on HTML version 4.01. Most modern browsers now support HTML5, which is the next version of HTML after HTML 4.01.

Also see this list of HTML 5 tags for the latest version of HTML.