JVMX
JVMX

Reputation: 1078

Controlling Link Color in HTML email

I am database guy. But for some inane reason the powers that be see me as the "guy who knows computers" so they think I can fix their HTML uglies.

We are sending out an HTML email newsletter.

I need to set the color of a link on the page to #6D9742

Ive tried a lot of thing like:

a href="http://www.mylink.com" color= 6D9742 >Click here for blah blah. 

Could I get a little syntax help?

Upvotes: 0

Views: 140

Answers (2)

Ashish Balchandani
Ashish Balchandani

Reputation: 1266

There are two ways to achieve it.

  1. Using style attribute: The style attribute specifies an inline style for an element.

HTML Code

<a href="http://www.mylink.com" style="color: #6D9742" > click here </a>
  1. Using styling in your css file.

HTML Code

<a id="mylink" href="http://www.mylink.com" > click here </a>

Css Code

#mylink{
color: #6D9742
}

Upvotes: 0

gsiradze
gsiradze

Reputation: 4733

try

<a href="http://www.mylink.com" style="color: #6D9742" >Click here for blah blah.</a>

another time use w3schools. It's realy good website.

for this question read : this

Upvotes: 1

Related Questions