Recall that
the Hausdorff distance (metric) is:
A metric in the space of subsets of a compact set $K$, defined as follows. Let $X,Y\subset K$ and let $D_{x,y}$ be the set of all numbers $\rho(x,Y)$ and $\rho(y,X)$ where $x\in X$, $y\in Y$ and $\rho$ is a metric in $K$. Then the Hausdorff metric $\operatorname{dist}(X,Y)$ is the least upper bound of the numbers in $D_{x,y}$.
the Hausdorff dimension is: Let $(X,d)$ be a metric space. In what follows, for any subset $E\subset X$, $\operatorname{diam}(E)$ will denote the diameter of $E$.
For any $E\subset X$, any $\delta \in ]0, \infty]$ and any $\alpha\in [0, \infty[$ we consider the outer measure $$ \mathcal{H}^\alpha_\delta (E) := \inf \left\{ \sum_{i=1}^\infty (\operatorname{[diam}\, E_i)^\alpha : E\subset \bigcup_i E_i \quad\text{and}\quad \operatorname{ diam}(E_i)< \delta\right\}. $$ The map $\delta\mapsto \mathcal{H}^\alpha_\delta (E)$ is monotone nonincreasing and thus we can define the Hausdorff measure $\alpha$-dimensional measure of $E$ as
$$ \mathcal{H}^\alpha (E) := \lim_{\delta\downarrow 0} \mathcal{H}^\alpha_\delta (E) $$ The map $\delta\mapsto \mathcal{H}^\alpha_\delta (E)$ is monotone nonincreasing and thus we can define the Hausdorff α-dimensional measure of E as $$ \mathcal{H}^\alpha (E) := \lim_{\delta\downarrow 0} \mathcal{H}^\alpha_\delta (E). $$
I wonder if the following is true: If $A_n \to A$ in the Hausdorff distance, then $\operatorname{dim}_H A_n \to \operatorname{dim}_H A$, where $A$ is a compact subset of $[0,1]^2$.

Unfortunately this is not correct. Let us define $$A_n:=\{\frac{k}{n}|\ k=0,1,\ldots n\}\subset [0,1].$$ Then $A_n$ converges in the Hausdorff sense to $[0,1]$. Let us proof this claim: Let $x\in[0,1)$. Then for all $n\in\mathbb{N}$ exists a $k\in\{0,1,\ldots,n\}$ such that $$\frac{k}{n}\leq x < \frac{k+1}{n}.$$ Hence $$\rho(x,A_n)\leq \min(|x-\frac{k}{n}|,|x-\frac{k+1}{n}|)\leq |\frac{k+1}{n}-\frac{k}{n}|=\frac{1}{n}.$$ Therefore $$dist_{\mathcal{H}}(A_n,A)\leq \frac{1}{n}\rightarrow 0\mbox{ for }n\rightarrow\infty.$$
The Hausdorffdimension of the $A_n$ is zero, because $A_n$ consists of finitely many points, while the Hausdorffdimension of $[0,1]$ is 1, because $\mathcal{H}^1([0,1])=\mathcal{L}^1([0,1])=1$ (Here $\mathcal{L}^1$ is the one dimensional Lebesgue mesaure).