If $(X,\tau)$ and $(Y,\tau_1)$ are compact Hausdorff spaces and $f:(X,\tau) \rightarrow (Y,\tau_1)$ is a continuous mapping, prove that $f$ is a closed mapping.
My outline of the proof is that Let $A \in Y$ be a closed set, then $f^{-1}(A)$ is closed in X since $f$ is continuous. I have to show that $f(f^{-1}(A)) = A$ and therefore $f$ is close mapping.
Am I doing the right thing?