Let $\mathbf{r}$ be a vector in the containing space, e.g., $(x,y,z)$ in three dimensions. Let $\mathbf{w}$ be coordinates in the embedded manifold, e.g., $(u,v)$ in a two-dimensional manifold. Assume that components of $\mathbf{r}$ can be written as functions of $\mathbf{w}$, and vice versa. Then the metric tensor is defined as
$g_{ij} = \sum_k \frac{dr^k}{dw^i} \frac{dr^k}{dw^j}$
where letter superscripts are indices, not powers. $g$ is clearly symmetric.
The square of the arc length is $ds^2 = \sum_{ij} g_{ij} dw^i dw^j$.
In two dimensions, $ds^2 = g_{11} du^2 + g_{12} du dv + g_{21} dv du + g_{22} dv^2$,
or
$E du^2 + 2 F du dv + G dv^2$. This is the first fundamental form for a surface.
The components of the shape tensor are projections of second partial derivatives onto the unit normal. In two dimensions, a unit normal is the cross product of the tangent vectors, which are derivatives of $\mathbf{r}$ with respect to $u$ and $v$. The shape tensor is given by
$b_{ij} = \sum_k n^k \frac{\partial^2 r^k}{\partial w^i \partial w^j}$,
which is clearly symmetric. The distance from the surface at r+dr to the tangent plane at r is given by
$2D = \sum_{ij} b_{ij} dw^i dw^j$.
In two dimensions this is $2D = b_{11} du^2 + b_{12} du dv + b_{21} dv du + b_{22} dv^2,$
or $2D = e du^2 + 2 f du dv + g dv^2$. This is the second fundamental form for a surface.
A good reference is sections 32-36 of Vector and Tensor Analysis by Harry Lass, McGraw-Hill (1950).