In the UK the order of signals is as follows:
Red: danger, stop
Yellow: proceed, caution, next signal is red
Double yellow: proceed, caution, next signal is yellow
Green: line clear
The block rules apply so that only one train can be in a section at any one time. Route indicators may consist of a bar of white lights known as a 'feather' which shows the direction the train is to take at a junction, or at some stations, an illuminated panel below the signal which shows the number of the track the signal refers to.
Shunting signals are normally placed near the ground and consist of two red lights for stop and two white lights for proceed.
In some places the older board or semaphore signals are still in place. A red and white arm horizontal means danger, stop and raised or lowered means line clear, proceed.
A yellow arm with a notch in the end and a black chevron horizontal means caution, proceed, next signal is at danger. The arm raised or lowered means the next signal is clear, also the signal after that which allows the train to enter the next block.
The older type of shunting signal consists of a circular or semicircular disc with a red band. The red band horizontal means stop while tilted at an angle means proceed.