The <center>tag is a container element and is used to align text or images in the center of the web page. This tag is especially useful for center aligning images because we cannot do it using the <img>tag. The syntax for using this tag is as follows:
<center>TEXT OR IMAGE(specified by using the IMG tag)</center>
Observe and try the following source code and see its effect in a web browser.
<title>Centering the Image</title></head>