Changing link properties

Jaiem's picture

They have: 1,191 posts

Joined: Apr 1999

I know this has been covered before but I can't seem to find the thread.

How do you remove the underline from a text hyperlink? I know you can use a style sheet but is there a clean way in plain HTML?

Thanks!

------------------
ArtsNFlies.com
"It's not really a flyfishing shop, more like a Martha Stewart goes fishing thing!"

Original art, hand tied flies, unique books and gifts, free sweepstakes and MORE!
Come see what everyone is talking about!

merlin's picture

They have: 410 posts

Joined: Oct 1999

hi jaiem
i don't think there's a possibility without a style-sheet. but you can include the style-tags in your html-file, so you don't need an external css-file. do it like this:

<head>
<title></title>
<style>
A{
text-decoration : none;
}
</style>
</head>

<body>
<a href="http://www.nab.ch">www.nab.ch</a>

the 'A' stands for a normal link without any further design-commands.

isn't that difficult is it?

Jaiem's picture

They have: 1,191 posts

Joined: Apr 1999

Ali - Thanks. I was aware of that one. Just that someone told me it can also be done with plain HTML.

Here's another question:

I want to make a table and have the links in the table not be underlined. But all the other links on the page can have an underline. How do I assign the style sheet to just that one table?

Thanks.

------------------
ArtsNFlies.com
"It's not really a flyfishing shop, more like a Martha Stewart goes fishing thing!"

Original art, hand tied flies, unique books and gifts, free sweepstakes and MORE!
Come see what everyone is talking about!

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

You can place the style in-line- it is still a style sheet command but is placed in the HTML. I think that is what you are getting at:

<A HREF="url" style="text-decoration:none">Text</A>

That works for each link individually.

------------------
John Pollock
http://www.pageresource.com
http://www.javascriptcity.com

Jaiem's picture

They have: 1,191 posts

Joined: Apr 1999

Thanks John. I'll try it!

------------------
ArtsNFlies.com
"It's not really a flyfishing shop, more like a Martha Stewart goes fishing thing!"

Original art, hand tied flies, unique books and gifts, free sweepstakes and MORE!
Come see what everyone is talking about!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.