HTML tags
Browser support
IE Firefox Chrome Safari Opera
tags are supported in all browsers.
Definitions and usage
Center the text that it contains horizontally.
The difference between HTML and XHTML
In HTML 4.01, the center element is not approved for use.
In the XHTML 1.0 Strict DTD, the center element is not supported.
Tips and Comments:
Remarks: Tip: Use CSS styles to center text.
Standard properties
ID, class, title, style, dir, Lang, Xml:lang
For a complete description, please visit the standard properties.
Event Properties
OnClick, ondblclick, onmousedown, onmouseup, onmouseover,
OnMouseMove, onmouseout, onkeypress, onkeydown, onkeyup
For a complete description, visit the event properties.
HTML 5 Label
Definitions and usage
The label is centered horizontally on the text it encloses.
The difference between HTML 4.01 and HTML 5
In HTML 5, the label is not supported. Please use CSS instead.
Tips and comments
Tip: Use CSS to center your text.