Tag <center> HTML Reference



Example

Center-align text in an HTML page:

<center>This text will be center-aligned.</center>

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

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.


Relative articles