What is a collar? Strategy, cost and tradeoffs

A collar sets a floor under your stock and a cap above it, often for little or no net cost. How the two legs work, what it costs, and when it makes sense.