link styling using MIME types

An idea born out of an interesting discussion over at the SitePoint forums. Using the often neglected type attribute, MIME types and some CSS2, links can be styled quite easily (if we forget for a second that IE has no clue about how to deal with the styling).

So, why not simply use a class for this? Because this way we're including a standardised chunk of useful information to the links themselves, which could theoretically be used by browsers in some meaningful a distant, standards-compliant future perhaps.

If you're desperately concerned about IE, there is a far less elegant solution for browsers not fully aware of CSS2, which involves doubling up the style definitions and using javascript to apply classes dynamically on document load (although, at that point, you may just as well consider using classes and forgetting this method altogether).