|
|
|
| | 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 FinalNothing more to add. NetscapeNothing special. Microsoft Internet ExplorerNothing special. InternationalizationNothing special. |
| | Home | HTML Guide Start | List of HTML Elements | Next Element | Previous Element | |
|
Michael T. Rusk All contents copyright © 1996-2001
Michael T. Rusk Revised:
Sunday, December 30, 2007 11:06
-0500 |