Last Updated on April 26, 2023 by Roshan Parihar
HTML center tag is used to show text with alignment to center.
The center tag is depreciated now, But you can center align the text using css text-align property
Syntax
1 |
<center>Enter some text here for center align</center> |
1 |
<center>Enter your content here to make it center align.</center> |
Output