KingNothing - if you search around the internet you'll find all types of sources for working with LEDs and the approach to it. Here's a quick summary.
Each LED will have a working
voltage and current, you want to avoid exceeding either one but most importantly the current.
Lets say the LED is 3V and 10mA and you have a 12V car battery. Well the battery is more like 12.8V when charged and something like 14.4V when the car is running. It should be obvious that 14.4V is a lot bigger than 3V and would burn this out is no time.
In a series circuit the current would flow into the resistor and then out and into the LED and back. Since we know ohm's law means that if we know the voltage and the current we want we can calculate the resistor that will allow that amount of current to flow (see link below for a calculator for the easy answer). Also we can use ohm's law to double check to make sure that if the correct amount of current is flowing the resistor will drop enough voltage to bring it down to a safe level for our LED.
http://home.cogeco.ca/~rpaisley4/LEDcalc.html
You could wire up many of them in series too, this page has an example of that where the author puts 3 in series and then calculates the resistor.
http://unclean.org/howto/led_circuit.html
To complete my example, the easy solution with a 14.4V source and 3V diodes would be to wire 5 in series and that would drop 15V - pretty close and requires no extra parts at the expense of a tiny amount of brightness replaced by a tiny amount of longer lifetime.
Just make sure when wiring in series that the diodes are all facing the correct direction, the anode (longer one) facing toward the positive.
And I still think a christmas tree light bulb is much cheaper and simpler since they will be much more forgiving if you overvolt them.