The slope of a vertical line is undefined. This is because the denominator of the rise over run fraction is always 0, which makes the slope undefined. In contrast, the slope of a horizontal line is 0.