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