Diodes are semiconductor devices which act as one way electrical check valves. Diodes will allow current flow in one direction (anode to cathode), but block it in the reverse direction (cathode to anode).
Transistors are semiconductor devices for controlling current flow. A "transistor" (transformer + resistor) transfers signals across the resistance of two semiconductor materials.