Control the car when there are traffic lights

How must the vehicle obey the traffic lights?