HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML <center> Tag. Not Supported in HTML5.


Example

Center-align text in an HTML page:

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

Try it Yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The <center> tag is supported in all major browsers.


Definition and Usage

The <center> tag is not supported in HTML5. Use CSS instead.

The <center> tag is used to center-align text.


Differences Between HTML 4.01 and HTML5

The <center> tag is not supported in HTML5.


Compatibility Notes

CSS Example: Center-align text

In our CSS tutorial you can find more information about CSS text alignment.




Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE