How to rotate gif html code?

How to rotate the GIF html code? I’m trying to develop my own webpage for my html subject project. I am planning to create a profile picture for my webpage to introduce my identity. However, I got some problem with the coding process about rotating some GIF files. Can you give me a solution and a brief explanation regarding this matter?
Thank you.
