Reputation: 1078
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
Reputation: 1266
There are two ways to achieve it.
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>
HTML Code
<a id="mylink" href="http://www.mylink.com" > click here </a>
Css Code
#mylink{
color: #6D9742
}
Upvotes: 0