- Forums
- HTML
- A Simple Tutorial On How To Underline In HTML Webpages
this is a very basic tutorial on how you can amke underline text on your web sites using HTML code [731], Last Updated: Sat May 18, 2024
wallpaperama
Mon Oct 20, 2008
3 Comments
7813 Visits
if you want to know how to under line in html web pages, i will show you here.
lets say i have this sentence: "Tell Your Friends About Wallpaperama"
how i want to underline the part that says "Wallpaperama" only, so i would use these html tags to do that
Using HTML
CODE:
Tell Your Friends About <u>Wallpaperama</u>
OUTPUT:
Tell Your Friends About Wallpaperama
ok, you can underline words with the <u> html tag, but its always better to do it with css.
so what's the css code you can use to underline, im going to show you on this short tutorial.
ok, keeping the same sentence and i want to underline the word "Wallpaperama" this is how you do it
Using CSS
CODE:
Tell Your Friends About <span style="text-decoration:underline">Wallpaperama</span>
OUTPUT:
Tell Your Friends About Wallpaperama
hope this hellps