X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML 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 »

Definition and Usage

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

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


Browser Support

Element
<center> Yes Yes Yes Yes Yes


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 HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook