Up until 1911, Chinese males had to wear what as a symbol of submission?

Up until 1911, Chinese males had to wear what as a symbol of submission?