Latest

recent

HTML Center tag

Example

Center text in an HTML page:

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

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.

Standard Attributes

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

Event Attributes

onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
HTML Center tag Reviewed by 1000sourcecodes on 06:06 Rating: 5
Powered by Blogger.