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.

All Highway Code Rules | My Saved Highway Code Rules