A triangle itself is a 2D shape and has no volume — only area (A = ½ × base × height). However, when a triangle is extended through a length to form a triangular prism, the resulting 3D shape has volume.
To calculate "triangle volume," you need the triangular cross-section dimensions (base and height of the triangle) plus the length (depth) the triangle extends through.