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 manner...in a distant, standards-compliant future perhaps.

This is the version for those desperately concerned about IE. It's far less elegant than the pure CSS2 version, and requires 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).