RuskFamily.com ... the Legend Continues Practice Page
| Home | HTML Guide Start | List of HTML Elements | Next Element | Previous Element |

<CENTER></CENTER>

Center text between margins


This tag has a bad reputation among the purists. It's been used by a lot of folks and I even resort to it when I get a little lazy. As the HTML specification has progressed from the early days the concept of "containers" has grown in popularity. Each container usually contains an "align" attribute that lets you tell it where to put the contents. So, instead of using this tag to center a lot of stuff on your page, you should use align=center on each of the paragraphs within the section.

It still comes in handy sometimes, when I just want to make everything centered without having to do it to every piece.

	<html>
	<head>
	<title>A page that is centered</title>
	</head>
	<body>
	   .
	   .
==>>	<center>Centered line</center>
	   .
	   .
	</body>
	</html>

HTML 3.2 Final

    Nothing more to add.

Netscape

    Nothing special.

Microsoft Internet Explorer

    Nothing special.

Internationalization

    Nothing special.

| Home | HTML Guide Start | List of HTML Elements | Next Element | Previous Element |

Michael T. Rusk
Comments to author: mike@ruskfamily.com

All contents copyright © 1996-2001 Michael T. Rusk
All rights reserved.

Valid HTML 4.01!   Valid CSS!

Revised: Sunday, December 30, 2007 11:06 -0500
URL: ./htmlgd/tagcente.html