विश्व का सबसे बड़ा हिंदी वेब डेवलपर साइट

HTML <center> Tag. Not Supported in HTML5.


Center-align text in an HTML page:

<center>This text will be center-aligned.</center>
Try it yourself »

Definition and Usage

The <center> tag is not supported in HTML5. Use CSS instead.

The <center> tag is used to center-align text.

Browser Support

<center> Yes Yes Yes Yes Yes

Differences Between HTML 4.01 and HTML5

The <center> tag is not supported in HTML5.

Compatibility Notes

CSS Example: Center-align text

In our CSS tutorial you can find more information about CSS text alignment.