Alliteration is the repetition of consonant sounds at the beginning of words, not the rhyming of words.
Here's an example of alliteration:
* She sells sea shells by the sea shore.
While rhyme is the repetition of similar sounds at the end of words:
* The cat sat on the mat.
Alliteration and rhyme are both poetic devices, but they achieve different effects. Alliteration creates a pleasing sound and emphasis, while rhyme contributes to rhythm and memorability.