asp.net.ph

Skip Navigation Links

CENTER Element | CENTER Object

Language References


Causes subsequent text and images to be centered.HTML 3.2, 4, 4.01 Deprecated

HTML Syntax

Remarks

The CENTER element lets authors easily center a block of content without having to specify the alignment of each element in the content. It also allows centering of elements and arbitrary content that could not otherwise be centered, such as images.

Some tags take an optional ALIGN attribute that specifies the alignment of an element. The value of an ALIGN attribute overrides the CENTER tag.

The CENTER tag can be placed anywhere, such as in the middle of a paragraph. This element is a block element.

Members

CENTER Members

Example

<center>
   <img src="sample.jpg">
   <h5>Centering an Image</h5>
</center>

Centering an Image

See Also

DIV



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note