De första som använde flaggor som symbol för nationen var de små republikerna Genua och Venedig på 1200-talet.