Poetry refers to the whole poem (because ancient poems were used to sing, not read like this now, so they are called poems, not "poems" and "songs").
Poetry according to the age classification is of course "ancient poetry" and "modern poetry" (that is, new poetry).
Ancient poems are generally written in classical Chinese, and they pay great attention to rhyme and words. Modern poetry has no strict requirements on rhyme and number of words, but attention should be paid to rhyme, otherwise it is not a poem.
Of course, poetry is divided into metrical poems, quatrains, free poems and so on according to genre.