Summary -

In this topic, we described about the <center> tag along with detailed example.

The <center> tag is not supported in HTML5. Used to align the text to center. The <center> tag is used to align the text to center.

Syntax -

<center>.. text here.. </center>

Example -

<!DOCTYPE html>
<html>
	<head>
		<title> Center element example.. </title>
	</head>
	<body>
		<center>This text is aligned to center</center>
	</body>
</html>

Output -

This text is aligned to center