You can put this solution on YOUR website! When the 0 is on the "top" of the fraction, that would mean that the two y-values are the same. Thus that line is horizontal (slope of 0). If the "bottom" of the fraction is 0 that means the two x-values are the same. Thus that line is vertical (undefined slope).