Center Tag on HTML

Centering Content :
static dynamic html tags
  • You can use <center> tag to put any content in the center of the page or any table cell.
Example :

<!DOCTYPE html>
<html>
<head>
<title>Centring Content Example</title>
</head>
<body>
<p>This text is not in the center.</p>
<center>
<p>This text is in the center.</p>
</center>
</body>
</html>

OUTPUT:

This text is not in the center.
This text is in the center.

Comments

Popular posts from this blog

Set Font Colour

HTML FONTS

HTML Table Heading