Which part of the electromagnetic spectrum has the shortest wavelength?

A. infrared

B. violet

C. red

D. microwaves

B. Violet