Adding a class to current link

Adding a class to current link

Hi, I've seen this on many sites where the current link in a menu is styled. How do I add a class to a link that is active?
Thanks for any help or pointers.
Joe