Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can i change the text color of a tag without css?

Tags:

html

I'm writing a template for an e-mail, and I can't use css. I need to change the color of the links, by default they get blue and underline. I want to keep the underline but change the color to black. Is that even possible without css?

My exact line is:

<tr><td><a href="#"> Link 3 </a></td></tr>

EDIT

I found this answer but it adds an attribute to the body section. That's also something I can't have. Any other solutions?

<body link="XXX" alink="YYY" vlink="ZZZ">

EDIT

This link is great if like me you have to write html for an email. I'm copying it here for posterity. Thanks @Andy.

like image 728
caiocpricci2 Avatar asked Oct 23 '12 10:10

caiocpricci2


2 Answers

What you could do is use the old and deprecated font tag. So it would be:

<tr><td><a href="#"><font color="black"> Link 3 </font></a></td></tr>
like image 150
jangxx Avatar answered Sep 22 '22 15:09

jangxx


Use below code:

<tr><td><a href="#" style="color:black;"> Link 3 </a></td></tr>

it is an inline CSS and as per your requirement you can use it into your email.

like image 30
pkachhia Avatar answered Sep 25 '22 15:09

pkachhia