Flags
A flag is a piece of coloured cloth flown from a pole or mast, usually for purposes of signalling or identification. Flags were initially created for signalling, such as semaphore, and for the identification of those who displayed them, and are still used for that purpose today. more...
Flags are also used in messaging or advertising, or for decorative purposes, though at this less formal end the distinction between a flag and a simple cloth banner is blurred. Generally, a piece of cloth is a flag if it is flown like a flag, with one side attached, though many flags are recognisable if displayed in other forms.
The study of flags is known as vexillology, from the Latin vexillum meaning flag or banner.
History
Although flag-like symbols have been used by ancient cultures for thousands of years, the origin of flags in the modern sense is a matter of dispute. Some believe flags originated in China, others hold that the Roman Empire's vexillum was the first true flag. Originally, the standards of the Roman legions were not flags, but symbols like the eagle of Caesar's Xth legion; this eagle would be placed on a staff for the standard-bearer to hold up during battle. But a military unit from Scythia had for a standard a dragon with a flexible tail which would move in the wind; the legions copied this; eventually all the legions had flexible standards — our modern-day flag.
During the Middle Ages, flags were used mainly during battles to identify individual leaders: in Europe the knights, in Japan the samurai, and in China the generals under the imperial army.
Read more at Wikipedia.org