Steam tram engines, which were built, or modified, to work on a street, or roadside, tramway were almost universally also tank engines.
Tram engines had their wheels and motion enclosed to avoid accidents in traffic.