top left
The HTML Source Logo


 html
Top Right
    
 Getting StartedHow Do I...TroubleShootingPromotionContact Us
 html
HTML
SEARCH THE SITE
advanced search



CATEGORIES
Home
Getting Started
HTML Cheat Sheet
Webmaster Tools
HTML Help Forum
Color Codes
Link to us









































bottom
HTML HTML HTML HTML
How Do I center my text?


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!

Example

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:

John's Home Page



< BACK






















Company   |   Careers   |   Partners   |   Advertising   |   Help
Privacy Policy   |   Trademark Notices   |   User Agreement
2001 TheHTMlSource.com, INC. All Rights Reserved.



Site hosted by Angelfire.com: Build your free website today!