According to ancient Giseiryo (law regarding rituals) in the Ritsuryo codes, it was defined that the Emperor should be described as 'Kotei' in documents toward inside and outside of China.
古くは律令の儀制令において、華夷（国内外）に対する文書では「皇帝」と表記することが定められていた。