HTML <center> tag

Browser Support

IE Firefox Chrome Safari Opera

All browsers support <center> tag.

Definition and Usage

Centering its horizontal text included.

Differences between HTML and XHTML

In HTML 4.01, center element is not in favor of use.

In XHTML 1.0 Strict DTD in, center element is not supported.

Tips and Notes:

Note: Tip: Use CSS styles to center text!

Standard property

id, class, title, style, dir, lang, xml:lang

For a full description, go to Standard property .

Event Properties

onclick, ondblclick, onmousedown, onmouseup, onmouseover, 
onmousemove, onmouseout, onkeypress, onkeydown, onkeyup

For a full description, go to Event Attributes .