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:

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

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

Any idea??


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.

<title>Some title</title>
<style type="text/css">
a { text-decoration : none; color : #000; }
<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>

Try this:

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

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, learning, and sharing knowledge.