An elliptic curve is a curve $E$ of genus 1, together with a choice of basepoint $P_0\in E$.
Note if $\deg(D) > 0$, then $l(D) = \deg(D)$.