There are two wires called leads attached to an LED. One lead is slightly longer than other.
While connecting to the LED to the circuit, the longer lead is always connected to the positive terminal of the battery and the short lead connected to the negative terminal of the battery.