how to get a link not underlined in html
+1
A:
You'll probably want to do that in CSS.
a {
text-decoration: none;
}
Or, as an inline style:
<a href="http://foo.bar/something" style="text-decoration:none">link</a>
Henrik Paul
2009-02-02 08:08:18
+1
A:
for one link, use style="text-decoration:none"
if you want it for the whole site:
<style> a { text-decoration:none; } </style>
ajma
2009-02-02 08:09:02
+4
A:
Just guessing at what your next question would be....
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
nickf
2009-02-02 08:10:22
+6
A:
It can be done in following ways:
1) If you want to remove underline from specific link, then use
<a href="#" style="text-decoration:none;">Some text</a>
2) To remove the underline from entire html page, Create a .css file, In that write following:
a { text-decoration: none; }
It will suppress underline from every anchor tag.
Sachin Gaur
2009-02-02 08:10:47
+2
A:
As everyone above said, but I wouldn't use inline styles.
Rather set a class for all links that you do not wish to have underlined.
<a href=#" class="nolines">Your link</a>
CSS:
a.nolines{text-decoration:none;}
Jayx
2009-02-02 08:56:37