HTML <center> Center Tag Reference

The center HTML tag means Center, and it centres its enclosed content.

It was deprecated in HTML 4.01 so should never be used.

The <center> HTML/xHTML tag

The <center> tag is used to align content in the centre of it's parent element.

When to use the <center> tag (semantic use)

<center> was deprecated in HTML 4.01, so you should never use it. Instead use CSS to position your content.

Example of <center> tag use

No examples given, as you should not be using this tag.

Alternatives to the <center> tag

To center text, use a semantically correct text element, such as <p>, and use the CSS style text-align: center