A viaduct is a type of bridge, specifically a long bridge-like structure that carries a road or railroad across a valley, river, or other obstacle. It's essentially a specialized form of bridge. Railroad and pipe are things a viaduct might carry, not what it is.