Question about edge loops

Here is something I'm rather confused on: What is properly considered an edge loop? Apologies if I missed this, but is an edge loop a collection of edges (that are part of quads) which make a complete loop, or is it simply a line of edges that connect as long as said edges are part of quads, and these lines end when they reach places where that is not the case?