HTML center

From Htmlpedia
Jump to: navigation, search

HTML CENTER Tag


Definition and Usage

<CENTER> centers the enclosed text horizontally. It has been depreciated in HTML 4.01 and is not supported in XHTML 1.0 Strict DTD. Use CSS instead.


Example

   <center>This text is centered.</center>

Output

This text is centered.

Attributes

Standard Attributes

id, class, title, style, dir, lang

Event Attributes

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


References

http://www.w3schools.com/tags/tag_center.asp

--Foreyes4 15:20, 18 April 2007 (CEST)