With all due respect to Doug C., I would like to add to his answer.
First,as Doug pointed out, when f'(a) = 0, the curve of f has an horizontal tangent.
The important point is that this may or may not be a maximum or minimum point.
What we know is that if f has a local maximum or a local minimum at a, then f'(a)=0.
The converse is not necessarily true...although in problems we often act as if it is!!!!!
Second, when both f'(a) AND f"(a) are 0, the curve of f still has a horizontal tangent at a, but this is the important case when an horizontal tangent is NOT at a local maximum or local minimum, but at a point of inflection with an horizontal tangent. Best example: f(x)=x3 at x=0.