For a single LED you will be given the required forward current and voltage, ie 20mA @ 3V and if you have a 5 volt supply then the resister required is given by
(5-3)/0.020 = 100 ohms
This is ok for some applications but the resister will disipate energy in the form of heat so with a higher...