Language References
Causes subsequent text and images to be centered. | HTML 3.2, 4, 4.01 Deprecated |
HTML Syntax
<center
class = classname
id = value
style = css properties
title = text
event = script
>
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.
CENTER Members
<center>
<img src="sample.jpg">
<h5>Centering an Image</h5>
</center>
Centering an Image
DIV