ExampleCenter-align text in an HTML page: | Browser Support |
1. Definition and Usage
The <center> tag is not supported in HTML5. Use CSS instead.
The <center> element is deprecated in HTML 4.01.
The <center> tag is used to center-align text.
2. Tips and Notes
Tip: Use CSS to center text.
3. Differences Between HTML 4.01 and HTML5
The <center> tag is not supported in HTML5, and is deprecated in HTML 4.01.
4. Standard Attributes
The <center> tag supports the Standard Attributes in HTML.
5. Event Attributes
The <center> tag also supports the Standard Event Attributes in HTML.