HTML Center Tag
The <center> tag not supported in HTML5.
The <center> tag was used in older versions of HTML to center-align content such as text, images, or tables on a webpage. Anything placed between <center> and </center> would be displayed in the center of the page horizontally.
Syntax -
<center>..text here..</center>
Example -
Scenario - Example Using <center> Tag
<!DOCTYPE html>
<html>
<head>
<title> Center element example.. </title>
</head>
<body>
<center><p>This text is aligned to center</p></center>
</body>
</html>
Output -
This text is aligned to center
Explaining Example -
The paragraph will appear in the center of the webpage, but this only works in older browsers or when HTML5 restrictions are not strictly followed.