Monday, January 12, 2015

Centering Content

You can use <center> tag to put any content in the center of the page or any table cell.




<!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>

No comments:

Post a Comment