No. There is nothing in any HTML specification for setting the border color at all, still less on a per-element basis. There is the widely supported nonstandard bordercolor attribute, but it works on the table as a whole, setting all border colors in it.
What comes closest to what you are asking is the trick of wrapping the content of the cell in a single-cell table and setting border color on it:
<table>
<tr>
<td>foo
<td><table border=2 rules=none bordercolor=red><tr><td>bar</table>
<td>more
</table>
The style of the border is then browser-dependent, and so is the visual impression of its color, since solid red looks different from outset red. Moreover, the border is really inside the table cell, not around it, as you see if you set border on the outer table:
<table border=1>
<tr>
<td>foo
<td><table border=2 rules=none bordercolor=red><tr><td>bar</table>
<td>more
</table>
Answer from Jukka K. Korpela on Stack OverflowVideos
I assume you are doing something horrible like HTML email:
<center><table bgcolor="#ff00ff"></table></center>
<center>
<table border="1" cellspacing="0" cellpadding="0" width="200" align="center">
<tr>
<td background="http://www.yourdomain.com/email/images/background.jpg" align="left">
<!-- Stuff -->
</td>
</tr>
</table>
</center>
- http://www.email-standards.org/
- http://mailchimp.com/resources/guides/email-marketing-field-guide/
- http://www.1stwebdesigner.com/tutorials/ultimate-guide-html-emails/
The background attribute was never valid on table or td. Pretty sure the only thing the HTML 4 specification had background on was body. But I vaguely recall that it worked elsewhere and I think table cells was elsewhere--whether it works in Outlook you'll just have to test. bgcolor was valid all of those places...and is likely to work.
This example is working fine on IE8, Chrome 9 and Firefox 3.6 so I really can't see what is the problem.
HTML used in the example:
<table>
<tr>
<td>AAA</td>
<td class="middle">BBB</td>
<td>CCC</td>
</tr>
</table>
CSS:
.middle { border: 2px solid blue; }
tr { border: 2px solid red; }
Result:

No can do, ime, even though css spec ( http://www.w3.org/TR/CSS2/box.html#border-properties ) plainly says border and border-color can be applied to "all elements". Though it might be because <table> might not fall under the box model; I'm not sure about this.
In any case, it's a counter-intuitive, crazy-seeming, page-bloat-inducing pita.
There must be better solutions than bordering every single table cell, which is what I end up doing.
-- pete