I would like to prove that the following definitions of $H^1_0(\Omega)$ are equivalent. In what follows $\Omega$ is supposed to be a bounded domain with smooth boundary.
$$1) \qquad H^1_0(\Omega) = \overline{C_0^{\infty}}^{\|\cdot\|_{H^1}}$$ $$2) \qquad H_0^1(\Omega) = \{u \in H^1(\Omega)\ :\ u_{|_{\partial \Omega}} = 0 \}$$ In the second definition $u_{|_{\partial \Omega}} = 0$ means that $Tu = 0$, where $T$ is the trace operator. Can anyone help me?