Your question is way too general. The codec you want depends on your delivery needs:
Animation Codec: exporting for motion graphics, or when you need
absolutely no quality loss. These files are HUGE so they can't play back properly on most systems. You don't compress to Animation for playback, you do it for additional work.
H264: Very common for web delivery, but there are dozens of options for compressing -- file size, frame rate, bitrate, keyframes, etc.
Those are the two most "generic" codecs, in my experience. When you don't know what format is preferred, you use one of these two. For editing, I use ProRes and DNxHD a lot.
Ben Unguren
Motion Graphics & Editing
http://www.mostlydocumentary.com