<center> tag in HTML
The <center> tag is used to center-align text. The <center> tag is not supported in HTML5. Use CSS instead.
Important Description
- The <center> tag use is discouraged since it could be removed at any time, then try to avoid using it.
- When applying text-align:center to a <div> or <p> element centers.
Example of <center> Tag
Result Look Like
This text will be center-aligned.
This line will be centered.
<center> Tag Browser Support
Element |
Chrome |
Edge |
Firefox |
Safari |
Opera |
<center> |
Yes |
Yes |
Yes |
Yes |
Yes |