We can find the slope of any line by thinking about the changes in its x-y coordinates, given by the formula:

For there to be a slope of zero, then the two y-ordinates must be the same, given the x-ordinates aren't the same.
This resembles our horizontal line, given by the equation:

We know this because the changes in the y-ordinate is zero, giving us a gradient/slope of zero.