Since the 18th century—and quite possibly centuries before—“The 12 Days of Christmas” has been popular around the holiday season.