Personally, I don't like the fence sitting atop a curve example, because it is so artificial and isn't what these integrals are typically used for. A much better example is working with force fields. Suppose every point in the xy plane lies in a force field. Could be, for example, gravitational or magnetic. So each point ##(x,y)## has an associated force vector ##\vec F(x,y) = \langle P(x,y),Q(x,y)\rangle##. Suppose ##C## is a smooth curve in the plane, an object moves along the curve feeling the force, and you want to know how much work it takes to do that. Let's say the curve is parameterized as ##\vec R(t) = \langle x(t),y(t)\rangle,~a\le t \le b##. You know that ##\vec R'(t)## is tangent to the curve and if ##\hat T(t)## is a unit vector in the direction of ##\vec R'(t)##, then the component of the force in the direction of motion is given by ##\vec F\cdot \hat T##. So if the object moves a distance ##ds## along the curve the differential amount of work done by the force would be ##dW =\vec F\cdot \hat T~ds## and the total work done by the force would be$$
W =\int_C \vec F\cdot \hat T~ds$$If you want to express this in terms of the ##t## parameterization, note that$$
\hat T ds = \frac{\vec R'(t)}{|\vec R'(t)|}\frac{ds}{dt}dt = \vec R'(t)~dt$$so the expression for work done by the force can be written$$
W = \int_a^b\vec F\cdot \vec R'~dt$$Texts typically abbreivate ##\vec R'(t)~dt## as ##d\vec R## and you get the compact form$$
W = \int_C \vec F\cdot d\vec R = \int_a^b\vec F(x(t),y(t))\cdot \vec R'(t)~dt$$.
Sometimes you will see alternate notation, since ##\vec F(x,y) = \langle P(x,y),Q(x,y)\rangle##, you will see ##d\vec R## written as ##\langle dx, dy\rangle## and the line integral abbreviated as ##\int_C Pdx + Qdy##. It's all the same and you usually evaluate everything in terms of ##t##, manipulating the differentials using the usual formulas. The dx and dy integrals separately calculate the effects on the integral caused by their corresponding variable changing.
Your text may develop it differently but hopefully this example helps give you some intuition about what line integrals are for.