Why did Yankee Doodle put a feater and call macaroni?

The phrase "Yankee Doodle put a feather in his hat and called it macaroni" is a reference to the fashion sense of New England colonists during the American Revolution. The macaroni were a group of young men in England who were known for their extravagant and fashionable dress, including wearing feathers in their hats. The colonists of New England, who were often seen as being more practical and down-to-earth, mocked the macaroni by adopting some of their fashion trends, including the feather in the hat. The phrase "Yankee Doodle" became a popular nickname for the colonists and was often used in songs and other works of literature to represent the American spirit.