How can I display the word in between the "<a href="some.html">" and </a> in a way that the word will not be underlined? For example, "html//www.somesite.com" will be displayed as "html//www.somesite.com" but the link will still remain.
| SitePoint Sponsor |
How can I display the word in between the "<a href="some.html">" and </a> in a way that the word will not be underlined? For example, "html//www.somesite.com" will be displayed as "html//www.somesite.com" but the link will still remain.





This can be done through CSS. You should use the following code for it:
Code:<a href="some.html" style="text-decoration: none;">http://www.somesite.com</a>



Or, you could define a nounderline class using CSS:
And then make your links like this:Code:<style type="text/css"> a.nounderline { text-decoration: none; }
Code:<a href="link.htm" class="nounderline">Link</a>
Bookmarks