tags:

views:

418

answers:

6

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
+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
+1  A: 

Using CSS. The property you need to set is text-decoration: none;

mdm
+4  A: 

Just guessing at what your next question would be....

a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
nickf
+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
+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