Both compute the same number: the limit of the slope of a secant line as the second point slides into the first. The result is the slope of the tangent line at $x=a$, and equivalently the instantaneous rate of change of $f$ at $a$.
Reading these definitions backwards is a standard AP move. Given $\lim_{h\to0}\frac{(3+h)^4-81}{h}$, recognise $f(x)=x^4$ and $a=3$, so the limit is $f'(3)=4\cdot27=108$ — no algebra required.
The secant slides into the tangent. The blue line joins two points a horizontal distance $h$ apart; its slope is $\frac{f(x+h)-f(x)}{h}$ — exactly the ratio in the definition. As $h\to 0$ the right point slides toward the left point and the secant rotates into the dashed line: the tangent. The derivative is the slope of that dashed line.
Worked example: compute a derivative from the definition
Using the limit definition, compute $f'(x)$ for $f(x)=\sqrt{2x+1}$.
Cross-check with the chain rule (Unit 3): $\frac{1}{2}(2x+1)^{-1/2}\cdot 2$ — it matches.
Common mistake
If the problem gives $\lim_{h\to0}\frac{f(2+h)-f(2)}{h}$ then the center is $a=2$; but the problem also often gives $\lim_{h\to0}\frac{f(2+3h)-f(2)}{h}$ — this is not $f'(2)$ but $3f'(2)$. Always multiply and divide so the denominator matches exactly the amount added inside the parentheses: $\frac{f(2+3h)-f(2)}{3h}\cdot 3$.
Key takeaway
When you see a limit of the form “a difference divided by a quantity going to 0”, the first reflex is to ask “this is the derivative of which function, at which point” — usually ten times faster than algebraic manipulation.