Flags of the Holy Roman Empire
In 1804, Napoleon Bonaparte declared the First French Empire. In response to this, Emperor Francis II of the Habsburg dynasty declared his personal domain to be the Austrian Empire and became Francis I of Austria. Taking the colours of the banner of the Holy Roman Emperor, the flag of the Austrian Empire was black and gold. Francis II was the last Holy Roman Emperor, with Napoleon forcing the empire's dissolution in 1806. After this point, these colours continued to be used as the flag of Austria until 1918.
Emperor
From the time of Otto the Great onward, much of the former Carolingian kingdom of Eastern Francia became the Holy Roman Empire. The prince-electors elected one of their peers as King of the Romans and King of Italy before being crowned by the Pope. The Emperor could also pursue the election of his heir (usually a son) as King, who would then succeed him after his death. This junior King then bore the title of Roman King (King of the Romans). Although technically already ruling, after the election he would be crowned as emperor by the Pope. The last emperor to be crowned by the pope was Charles V; all emperors after him were technically "emperors-elect", but were universally referred to as "Emperor".