Say that we have a function $f(x)=x$, and two distinct points $P(x_0,f(x_0))$ and $Q(x,f(x))$ on the curve $y=f(x)$; if we let Q approach P, then the slope of the secant through Q and P will approach a limit, that is the slope of the tangent line at P: $$m_{tan}= \lim_{x\to x_0}\frac{f(x)-f(x_0)}{x-x_0} . . . . . (1)$$ I have read that if we let $h$ denote the difference $h=x-x_0$, then the statement $x\to x_0$ is equivalent to the statement $h\to 0$, so we can rewrite $(1)$ in terms of $x_0$ and $h$ as:$$m_{tan}= \lim_{h\to 0}\frac{f(x_0+h)-f(x_0)}{h} . . . . . (2)$$ Okay, if someone said that since $h$ denote the difference $h=x-x_0$, then the statement $h\to 0$ is equivalent to the statement $x_0\to x$, so we can rewrite $(2)$ as:$$m_{tan}=\lim_{x_0\to x}\frac{f(x)-f(x_0)}{x-x_0} . . . . . (3)$$ BUT, this is totally wrong since $(1)$ and $(3)$ are totally different limits that give slops of tangents of two different points(namely, $P$ and $Q$).
Can $(1)$ be written as $(2)$? If yes, why can't $(2)$ be written as $(3)$?
Yes of course those are two equivalent ways to write the limits by a change of variables.
Note also that in the definition $x\to x_0$ the value $x_0$ is fixed and $x$ is approching that value at the point $P$.
Therefore, to summarize, starting from
$$\lim_{x\to x_0}\frac{f(x)-f(x_0)}{x-x_0}$$
by the change of variable $x=x_0+h \iff x-x_0=h$ we have that $x\to x_0 \iff h\to 0$ and
$$\lim_{x\to x_0}\frac{f(x)-f(x_0)}{x-x_0}=\lim_{h\to 0}\frac{f(x_0+h)-f(x_0)}{h}$$