How do I remove the underline for links?

krwell

Senior member
Feb 11, 2001
454
0
0
I'm trying to find out how to take the underline away from a link. Any help?

Thanks
krwell
 

Dantendo

Member
May 20, 2001
49
0
0
You got to use CSS.

CSS can be invoked in two ways:
1. Using the STYLE attribute on basically any tag
2. Using the STYLE tag inbetween the HEAD tags

So to remove a link underline you would do this:

<HEAD>
<STYLE TYPE=&quot;text/css&quot;>
<!--
a { text-decoration: none }
-->
</STYLE>
</HEAD>

This will remove the underline from all links. You can also do this link by
link:

<A HREF=&quot;page.html&quot; STYLE=&quot;a { text-decoration: none }&quot;>

That will only remove the underline for that specific tag. Many other things can be done with CSS and you ought to look into it. Webmonkey has a good article here:
http://www.hotwired.com/webmonkey/98/15/index0a.html?tw=stylesheets