What is a flag?

An oblong or square piece of cloth that is raised or attached to a pole and used as emblem or marker (OED)