The text and tune of Yankee Doodle both appeared in the mid-1700s. Doodle refers to a tune being sung badly, a macaroni was a wig worn in the time and related to floppiness and a Dandy was an extravagantly dressed man. The song serves as Connecticut’s state song.