The tangent space of the x-axis (at a given point) is again the x-axis (because it's horizontal, i.e. derivative is zero). Then the tangent space of the graph of $f(x)$ is whatever it is, but the key is that when it intersects the x-axis, the tangent space at that intersection point is _not_ horizontal (i.e. not the x-axis). So you have a tangent vector on the x-axis (which is necessarily horizontal) and a tangent vector on the graph of f(x) (which is necessarily not-horizontal), and hence these two vectors are linearly independent, hence span the whole plane (agreeing with Wikipedia)!