One thing I would like to tell you these elements are used in
It is the part of the figure of speech, it helps to create difference two things of a different kind
Example
O my luve resembles a red, red rose
your beauty is like moonlight.
Personification
In which, we compare two things living things and nonliving things.
Example
Sunrise with a beautiful smile.
Metaphor
It shows the similarity between two things, in which as, like words are not use in Metaphor.
Example
Why dost thou, therefore,
before high-piled booked, in character