rotete a imge html mdn
snippet in html

image orientation css

user6463

#image {
  image-orientation: 90deg; /* Can be changed in the live sample */
}

rotete a imge html mdn

user8396

<div>Normal</div>
<div class="rotated">Rotated</div>