how to rotate an image in html code example Example: rotate image html .img { transform: rotate(90deg); }