A very good introduction is the (unfinished) book Algebraic stacks by Kai Behrend, Brian Conrad, Dan Edidin, William Fulton, Barbara Fantechi, Lothar Göttsche and Andrew Kresch. You can find the finished chapters here.
Usually one considers the big étale site $\mathsf{Sch}_{ét}$ over some base scheme or base ring. But other sites are also possible, for example small fractions of the étale site in order to avoid set-theoretic problems (Tag 020M). If $S$ is some object of this site, an elliptic curve over (or, parametrized by) $S$ is a smooth proper morphism $C \to S$ with a section $\sigma : S \to C$, such that for all $s \in S$ the geometric fiber $C_{\overline{s}} \to \mathrm{Spec}(\overline{k(s)})$ is a connected curve of genus $1$ (and hence becomes an elliptic curve over $\overline{k(s)}$ with unit $\sigma_{\overline{s}}$). If $S \to T$ is a morphism and $C,D$ are elliptic curves over $S$ resp. $T$, a morphism $C \to D$ is a morphism which is compatible with the sections and which makes
$$\begin{array}{cc} C & \rightarrow & D \\ \downarrow && \downarrow \\ S & \rightarrow & T \end{array}$$
cartesian. One obtains a category $M_{1,1}$ fibered over $\mathsf{Sch}_{ét}$. It is quite formal to verify that it is a stack - the moduli stack of elliptic curves. I haven't read the proof, but it seems to me that one needs the theory of elliptic curves and some of Grothendieck's theory of Hilbert schemes to verify that $M_{1,1}$ is an algebraic stack. More generally, if $g,n \geq 0$ one can define the algebraic stack $M_{g,n}$ of smooth $n$-pointed algebraic curves of genus $g$. The stack $M_g := M_{g,1}$ was introduced by Deligne and Mumford in their seminal paper "The irreducibility of the space of curves of a given genus" (pdf).