Center text in an HTML page:
The <center> tag is used to center text.
The <center> tag is supported in all major browsers. However, it is deprecated and should be avoided
Hint: Use CSS to center text! In our CSS tutorial you can find more details about centering text.
DTD indicates in which HTML 4.01/XHTML 1.0 DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
The <center> tag supports the following standard attributes:
More information about Standard Attributes.
The <center> tag supports the following event attributes:
More information about Event Attributes.
Your Query was successfully sent!