Rule 305 - The Highway Code
Always give priority to trams, especially when they signal to pull away from stops, unless it would be unsafe to do so. Remember that they may be carrying large numbers of standing passengers who could be injured if the tram had to make an emergency stop. Look out for people getting off a bus or tram and crossing the road.
Resolvo Bot can look up a rule, a sign, or a parking restriction and keep the answer with your other jobs.