HTML center tag

From http://www.w3schools.com (Copyright Refsnes Data)

# HTML <center> tag

The center element is deprecated.

## Example

Center text in an HTML page:

<center>This text will be centered.</center>

Try it yourself!

## Definition and Usage

The <center> tag is used to center text.

## Browser Support

The <center> tag is supported in all major browsers. However, it is deprecated and should be avoided!

## Differences Between HTML and XHTML

The center element was deprecated in HTML 4.01, and is not supported in XHTML 1.0 Strict DTD.

## Tips and Notes

Tip: Use CSS to center text! In our CSS tutorial you can find more details about centering text.

## Standard Attributes

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

For a full description, go to Standard Attributes.

## Event Attributes

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

For a full description, go to Event Attributes.

From http://www.w3schools.com (Copyright Refsnes Data)