HTML <center> Tag. Not Supported in HTML5.
Example
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
Element | |||||
---|---|---|---|---|---|
<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.