JPEG does a better job with realistic images such as scanned photographs. Most browsers cannot handle inline JPEGs, however, so you must link to them as external images (using a regular <A HREF...> instead of <IMG SRC...>).
GIF does a better job with crisp, sharp images, such as those typically used to construct buttons, graphs and the like. All browsers that can display graphics at all can display GIFs inline.