The <center> tag in HTML is used to set the align of text into center. This tag is not supported in HTML5. CSS property is used to set the align of element instead of center tag in HTML5.
<center> Contents... <center>
Example 2: Use CSS property in HTML5 to set the text alignment into center.
Supported Browser: The browser supported by <center> tag are listed below:
- Internet Explorer