Hi,

I have hyperlinked texts and i want to remove the underline and blue color also.

I removed underline but not the blue color i want the font to be in black??

Here is the code:

<html>
<body>
<A STYLE="text-decoration:none href=http://www.google.com>This is an example for automatic term mapping</A>
</body>
</html>

How can i get the font color of the sentence in black color???

Any idea??

Regards
Vandhita

Recommended Answers

All 4 Replies

Try doing this : <a href="http://www.someplace.com/" style="text-decoration : none; color : #000000;">http://www.someplace.com</a> or if you want to apply it with all the links in your page.

<html>
<head>
<title>Some title</title>
<style type="text/css">
<!--
a { text-decoration : none; color : #000; }
-->
</style>
</head>
<body>
<div>
<a href="http://www.link1.com/">Link1</a><br>
<a href="http://www.link2.com/">Link2</a><br>
<a href="http://www.link3.com/">Link3</a>
</div>
</body>
</html>

Try this:

<html>
<body>
<a style="color:black; text-decoration:none" href="http://www.google.com"> This is an example for automatic term mapping</a>            
</body>
</html>

Go with essential's answer
its better to separate style and content,
the css can be externalised (once) when you have the page design right
for the entire site and reduced file sizes - download times are always a good thing
else every element that has to be styled needs style=" bleep loads of style text margin border padding color background "

Why dont you use dream weaver man just use it and work in html or any other language as you are working on Microsoft word.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.