HTML Cheat Sheet
HTML Help Forum
Link to us
How to do it
To center your text, just place a <CENTER> tag in front of the text you want to center. Then at the end of the line of text you want to turn center, place an ending </CENTER> tag. Note the / in the ending tag, this tells the browser to stop centering the text. This is important to add, or else the browser wont know where to stop centering, and center all the text after the beginning <CENTER> tag. Get it? Good!
I want to make the words "John's Home Page" centered on my web page.
My code would look like this:
<CENTER>John's Home Page</CENTER>
Seeing this in the browser will look like this:
© 2001 TheHTMlSource.com, INC. All Rights Reserved.