WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: visited hyperlink text color

for

From: Jared Smith
Date: Aug 12, 2015 10:08AM


I admit I don't know a lot about e-mail clients, but I can't envision
a situation where you'd be able to define a color background but not
be able to define the visited link colors. Both require basic CSS
support in the e-mail client, and I think e-mail clients that don't
support basic CSS would be rather rare these days.

So if CSS is supported, the user will get your defined colors which
will always be sufficient if you define both background and visited
link colors (a:visited in CSS) correctly. In a case where CSS is not
supported, the user will get the default purple on white colors, which
is also sufficient (and which you can't control anyway).

I think the only case where the user would experience contrast issues
is if you were to define a background color but not a visited link
color - and that's entirely preventable on your part.

I suppose there could be odd situations, such as <table bgcolor> that
might be supported for background colors where CSS for visited link
colors would not be, but this can be avoided by only using CSS to
define your colors.

Or perhaps I'm overlooking something.

Jared