HTML center Tag
The information on this page is based on HTML version 4.01 (which is the current version of HTML). The next version, HTML 5, is currently being written. Here's a list of HTML 5 tags.
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 |
<center>This text is centered</center>.
|
| Try it yourself! |
|

