Led divides in two pin : small and large pins.
The large pin is a positive(+) terminal.
The small pin is a negative(-) terminal.
// This is a basic program code for arduino
int led = 9;
void setup ()
{
pinMode (led, OUTPUT);
}
void loop ()
{
digitalWrite(led, HIGH); // HIGH is used for ON
delay(1000); // This 1000 = 1 second
digitalWrite(led, LOW); // LOW is used for OFF
delay(1000);
}