In general, for a function of $n$ variables $y(x_1,\dots,x_n)$, its differential is
$$dy = \frac{\partial y}{\partial x_1}dx_1+\dots+\frac{\partial y}{\partial x_n}dx_n$$
In case $n=1$, we obtain (saying just $x$ instead of $x_1$):
$$dy = \frac{\partial y}{\partial x}dx$$
Which is commonly abused like this:
$$\frac{dy}{dx} = \frac{\partial y}{\partial x}$$
Note that in general dividing differentials makes no sense, much like dividing vectors in $n$-dimensional vector space. But your somewhat can divide them in 1-dimensional space, and that's exactly what is happening here with the differentials.