Kanshi had multiple forms, but most notable were in 5 or 7 syllables in 4 or 8 lines. The Japanese poets of kanshi were skilled in the strict rhyming rules of lüshi 律詩 and jueju 絕句, the two forms of the regulated verse that had gained most popularity during the Tang dynasty in China.