Center-align text in an HTML page:
The <center> tag is not supported in HTML5. Use CSS instead.
The <center> tag is used to center-align text.
Element | |||||
---|---|---|---|---|---|
<center> | Yes | Yes | Yes | Yes | Yes |
The <center> tag is not supported in HTML5.
CSS Example: Center-align text
In our CSS tutorial you can find more information about CSS text alignment.