Highway Code Rule 37
When you are on the road you should obey the guidance and rules for other vehicles; when on the pavement you should follow the guidance and rules for pedestrians.
Test yourself on the Highway Code with practice questions.
Start practising