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 Underline My Text?


Underlining text can be helpful when you want to emphasize certain text on your web page.

How to do it

To underline your text, just place a <U> tag ( by the way stands for underline, obviously ) in front of the text you want to underline. Then at the end of the line of text you want to underline, place an ending </U> tag. Note the / in the ending tag, this tells the browser to stop underlining the text. This is important to add, or else the browser wont know where to stop underlining, and underline all the text after the beginning <U> tag. Get it? Good!

Example

I want to underline the words "John's Home Page" on my web page.

My code would look like this:

<U>John's Home Page</U>

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!