What is that part of grammar which treats of the quantity of syllables, of accent, and of the laws of versification or metrical composition called?

prosody — That part of grammar which treats of the quantity of syllables, of accent, and of the laws of versification or metrical composition. (Webster's 1913.)

Sources